fix receipt upload error when file name contain spaces#36531
Conversation
|
@situchan |
|
@situchan A gentle bump on review here. |
|
@rojiphil please merge main. (2k commits behind) |
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
|
Please request my review when all done |
Changes are done. Tested on 3 platforms and works well. |
Tested on all platforms. Works well. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
@AndrewGable Gentle bump on review here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/AndrewGable in version: 1.4.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.45-6 🚀
|

@situchan @AndrewGable
Details
This PR addresses a specific issue on Android devices where the receipt file type is not identified during upload of scan receipt. This happens during usage of
fetchto retrieve the blob contents. However, we do get the file type correctly when the receipt file is initially picked up from the storage. This PR attempts to make use of the identified file type during file upload as a fallback while usingfetchat a later point.Fixed Issues
$ #34429
PROPOSAL: #34429 (comment)
Tests
Test 1: Scan receipt generation in 1:1 DM Chat
+->Request money->Scan tabRequestto generate a scan receipt.The receipt didn’t uploadReport Previewto navigate to IOU ReportTest 2: Scan receipt generation through Global FAB
+->Request money->Scan tabRequestto generate a scan receipt.The receipt didn’t uploadReport Previewto navigate to IOU ReportOffline tests
Same as the Steps in Tests Section.
QA Steps
Same as the Steps in Tests Section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web - Safari
1:1 DM Chat Test
34429-web-safari-01_1.mp4
Global FAB Test
34429-web-safari-02.mp4
Mobile Web - Safari
1:1 DM Chat Test
34429-mweb-safari-01.mp4
Global FAB Test
34429-mweb-safari-02_1.mp4
Desktop
1:1 DM Chat Test
34429-desktop-01_1.mp4
Global FAB Test
34429-desktop-02.mp4
iOS
1:1 DM Chat Test
34429-ios-native-01_1.mp4
Global FAB Test
34429-ios-native-02.mp4
Android
1:1 DM Chat Test
34429-android-native-01_1.mp4
Global FAB Test
34429-android-native-02.mp4
Mobile Web - Chrome
1:1 DM Chat Test
34429-mweb-chrome-01_1.mp4
Global FAB Test
34429-mweb-chrome-02.mp4