Skip to content

URL is needed #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tuannguyenhoangit opened this issue Mar 27, 2018 · 1 comment
Closed

URL is needed #101

tuannguyenhoangit opened this issue Mar 27, 2018 · 1 comment

Comments

@tuannguyenhoangit
Copy link

tuannguyenhoangit commented Mar 27, 2018

My play Sound lib require real path (/storage/emulated/0/appiwell/music/abc.mp3) but Document picker return content://com.android.providers.media.documents/document/audio%3A11649 and I am being blocked here.

@dantman
Copy link
Collaborator

dantman commented Mar 27, 2018

Duplicate of #70

Android's DocumentPicker rightly returns a DocumentProvider URI, not a file, since it is not your file. If you absolutely need a file, you'll have to fetch the data and save it to one of the folders your app has access to (some data folder, or cache/temp forlder). RNFS may be useful for the latter part of deciding where to save it and saving the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants