joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.81k stars 772 forks source link

Unable to upload file with file:// #661

Open conservo-spyce opened 3 years ago

conservo-spyce commented 3 years ago

The images/videos from the latest version of CameraRoll returns the uri as "file://" instead of "content://". I am unable to upload the file using "file://" uri with RNFetchBlob. Anyway, this is for Android. Is there any other way to solve the issue. Perhaps a sample code maybe ? Thank you.

thainquet commented 3 years ago

In docs, there is a line in Caveats: "When passing a file path to the library, remove file:// prefix." did you try to remove prefix before upload?