I've used the React Native Document Picker for picking files to upload to server. It works fine on iOS which the file URI is file://, but when it comes to Android which using content:// URI, there's error thrown Parameters must be string key/values (I used multipart type).
I was tried using React-Native-Fetch-Blob to get the real path of the file, but when I try on upload the file it said Unsupported scheme file://path.to.file.
I hope that this library will support content:// soon.
I've used the
React Native Document Picker
for picking files to upload to server. It works fine on iOS which the file URI isfile://
, but when it comes to Android which usingcontent://
URI, there's error thrownParameters must be string key/values
(I usedmultipart
type). I was tried usingReact-Native-Fetch-Blob
to get the real path of the file, but when I try on upload the file it saidUnsupported scheme file://path.to.file
. I hope that this library will supportcontent://
soon.