Tuesday, 6 June 2017

Uploading file with the uri starting with content://

I am reading a file from android and uploading it to a remote server.I am getting the file in the form of

content://com.android.providers.downloads.documents/document/3

Since i am using react-native, can the uri above used as a file path?.

I can get the exact file path but when the file picker gets the file and the file has spaces, the picker cannot read the file but the uri takes into account spaces.

What can be done to use content://com.android.providers.downloads.documents/document/3 as the file path?.



via Mongodb

No comments:

Post a Comment