vinzscam/react-native-file-viewer

URL path with white space doesn't open the file.

rajkumar004 opened this issue · 1 comments

FileViewer.open doesn't open the URL contains a white space.
Here is my code,

let path = "file:///storage/emulated/0/demo demo.mp4";
FileViewer.open(path, {showOpenWithDialog: true});

It works fine when I remove the white space or renamed it as demo-demo.mp4.

Please look into my issue. Thanks!

Hi,
could you share how the file was created locally? Was it created programmatically?

I've tested and I haven't experienced any problem with opening files containing whitespaces in their path.