-
-
Notifications
You must be signed in to change notification settings - Fork 442
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
fileCopyUri
has file://
prefix on iOS but doesn't on Android
#526
Comments
Perhaps we can use toURI here instead of Ultimately this is returned in place of |
Hello,
this sounds like the right solution, wdyt? Feel free to send over a PR. Having some before + after screenshots will likely speed up the review as I won't have to spend so much time testing and will be nice as documentation for everyone. Thank you :) |
I agree
Alright, I'll prepare a PR tomorrow and include shots of |
PR ready: #527 |
Bug report
Summary
Using RN document picker to select a document with the
copyTo
option doesn't return the URI scheme on Android while it does for iOSIf you try to use the
fileCopyUri
to upload a file (using vanillafetch
) it works on iOS, but does not work on AndroidAdding the
file://
prefix, fixes the issue on androidReproducible sample code
Steps to reproduce
copyTo: 'cachesDirectory'
optionfileCopyUri
under Android - nofile:///
prefixfileCopyUri
under iOS - hasfile:///
prefixDescribe what you expected to happen:
copyTo: 'cachesDirectory'
optionfileCopyUri
should behave the same way on all Platformsfile:///
prefixEnvironment info
npx react-native info
output:library version: 7.1.3
iOS / Android version: ios 15 / Android 10
The text was updated successfully, but these errors were encountered: