-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[CP Staging] Fix document upload on Android #7277
[CP Staging] Fix document upload on Android #7277
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thank you for fixing this deploy blocker. I agree this would be better to fix in the RN Attachment picker.
|
…-fix [CP Staging] Fix document upload on Android (cherry picked from commit e63788d)
🚀 Cherry-picked to staging by @mountiny in version: 1.1.30-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
I've opened an issue here: react-native-documents/document-picker#526 |
Thank you for following up with the issue. It would be great if the fix could be implemented in the package itself. Would you be able to also create the PR? Do you need me to create a separate issue in our repo so you could be paid for it or can you just add time spent on that to this issue? |
You're welcome I've identified the cause react-native-documents/document-picker#526 (comment) and I can submit a PR |
Done @kidroca! Thank you! |
🚀 Deployed to production by @roryabraham in version: 1.1.30-3 🚀
|
@mountiny
Details
Add
file://
scheme prefix to attachment files (when it's missing)Related to: #4908 (comment)
RN Document picker does not add a URI scheme for the file uri on Android. This seems to work ok for showing the document in previews, but instantly fails File upload when
file://
is missingChecked on iOS and there we do have a
file://
prefixSo the logic that adds the prefix is conditional
Maybe we should try to address this on RN document picker's repo - this PR would remove the deploy blocker in the meantime
Fixed Issues
$ #7267
Tests
QA Steps
Same as above
Tested On
Screenshots
Web
New.Expensify.-.Google.Chrome.2022-01-17.12-54-35.mp4
Mobile Web
Screen.Recording.2022-01-17.at.13.07.03.mov
Desktop
Screen.Recording.2022-01-17.at.13.00.04.mov
iOS
Screen.Recording.2022-01-17.at.12.32.24.mov
Android
Android.Emulator.-.Pixel_2_API_29_5554.2022-01-17.12-40-31.mp4