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.
Process file:// URIs on iOS. #387
Open
Description
Hi,
I've been using this package in conjunction with react-native-document-picker to select and upload files from iOS device.
Picker package opens standard iOS file picker which returns URI like file:///private/var...
as result.
When I pass such URI in parameters for fetch
function using wrap
helper, it reports that selected file doesn't exist.
The issue is that here this URI is treated as a simple path and file existence request returns NO
.
If I strip file://
part before calling wrap
, it works as expected
Is it possible to add handling for file URIs there so that there's no need of additional preparations? Or is there an additional setting that should be used in this case?
Versions: RN 0.42.3, RNFB 0.10.5