This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Android URIs with RNFetchBlob.wrap #628
Open
Description
Hi there,
Thanks all for the amazing work on this lib. I had a question, I was doing an upload on Android, and was passing the uri
(not path
, its not available to me) direclty to RNFetchBlob.wrap
and it was working. IE:
const res = await RNFetchBlob.fetch(
'POST',
`......`,
{
Accept: 'application/vnd.api+json;VARIANT=ios',
}, [{
name: 'file',
filename: 'dummy',
type: mimeType,
data: RNFetchBlob.wrap(uri), // uri is "content://com.android.providers.media.documents/document/image%3A89"
}]
)
This is working but I was hoping to get the actual "file name with extension". Is it posible to convert this URI to path?
Also is it expectd that RNFetchBlob.wrap
should work with uri's?
Metadata
Metadata
Assignees
Labels
No labels