Skip to content
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
@ivankashtanov

Description

@ivankashtanov

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions