Open maciejewiczow opened 2 years ago
did you find any solution for this. Please paste here.....
I did not find any solution for that
i found if url have space then this problem appear
I got the same issue. please let me know if you find any solution over this please
i found if url have space then this problem appear
Please pass the decoded file URI as demonstrated below to resolve this issue.
const fileStat = await RNFetchBlob.fs.stat(decodeURI(fileUri));
Hi ! Thank you for reporting an issue, but we would like to remind you, we have a trouble shooting page in our wiki. You may want to take a look on that page or find issues tagged "trouble shooting" :p (done)
I am trying to stat a directory by its content uri to get its real path. Stat call fails with
failed to stat path "null" because it does not exist or it is not a folder
. The URI looks like thiscontent://com.android.externalstorage.documents/tree/primary:Movies/VLC
.My code looks like this:
The
pickDirectory
is a function from react-native-document-pickerI've added needed permission to the
AndroidManifest
file and also enabledandroid:requestLegacyExternalStorage="true"
.Please help, as I do not know any other way to get a directory real path. The stat call completes successfully when content URI points at a file.