You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.
I'm getting a content:// uri in android while using react-native-document-picker or react-native-contacts (for the avatars).
URIs like:
'content://com.android.providers.media.documents/document/image%3A99'
Trying to access this file fails with "stat error: failed to list path null for it is not exist or it is not a folder'"
You should take a look at my PR (#546) although I haven't touch the FS part of this library.
The current implementation in this library for content URIs on Android seems to try to find the file path for a given content URIs. If the file is a virtual file or in a place your app doesn't have access to, this is problematic.
I'm getting a content:// uri in android while using react-native-document-picker or react-native-contacts (for the avatars).
URIs like:
'content://com.android.providers.media.documents/document/image%3A99'
Trying to access this file fails with "stat error: failed to list path
null
for it is not exist or it is not a folder'"const urlDecoded = decodeURIComponent(url);
return new Promise((resolve, reject) => {
RNFetchBlob.fs.stat(urlDecoded)
.then(resolve)
.catch(reject);
});
Any idea how to access the file?
10x
The text was updated successfully, but these errors were encountered: