-
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
Unable to upload HEIF image as money request (Web) #47078
Comments
Triggered auto assignment to @kevinksullivan ( |
Triggered auto assignment to @johnmlee101 ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Edited by proposal-police: This proposal was edited at 2024-09-05 12:18:12 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Unable to upload HEIF image as money request What is the root cause of that problem?
Line 122 in d7b0aba
What changes do you think we should make in order to solve the problem?Add We also need to convert the heif/heic image to jpeg first before displaying and uploading the receipt image to BE We cant use Create new function called
Change On the other side, the New-Expensify.mp4To address this, we can create What alternative solutions did you explore? (Optional) |
Being discussed a bit in slack - https://expensify.slack.com/archives/C01GTK53T8Q/p1723093823149789 |
Working well in staging! marking NAB (probably shouldn't close though, since i think we still can't upload HEIF on web) |
@johnmlee101 feel free to assign to me if you want, but totes up to you |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.18-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-08-19. 🎊 |
Yes sorry, I thought that was clear 😅 We got approval so let's move forward 👍 |
@nyomanjyotisa Could you please update the PR and ping me when ready? |
After checking again, there was an issue on heic2any a few weeks ago where HEIC files that were taken by the new iPhone models cannot be converted |
So we can't use that lib anymore. |
@nyomanjyotisa So what is next here? |
I would propose to use heic-to. This library works well but has an issue when uploading a HEIF/HEIC image via the 'Choose File' option on the mobile version. I will check this issue further. New-Expensify.mp4 |
Oof yep, seems in alexcorvi/heic2any#61 a lot of people are struggling with that same issue... Thanks for checking if |
The To address this, I propose using New.Expensify.mp4 |
Do we have this issue on native platforms? I believe it works fine on iOS. |
I think @parasharrajat you're right that this bug only happens on web platforms at the moment |
As I mentioned in this comment, there are no issues on native platforms when users upload images directly from the gallery. However, if a receipt is uploaded using the 'Choose File' option, the image is not converted causing the upload to fail. To address this, I suggest using |
Ok. Thanks. @Beamanator Do you approve using |
What exactly fails with that upload? Like right now, uploading HEIC from iOS native works... Right? I assume we convert to jpg in the backend? Why doesn't that work with the new plan? |
There is a convert HEIC to JPEG only on native here, App/src/components/AttachmentPicker/index.native.tsx Lines 176 to 205 in 7925c9b
However, we can't use the same approach/same module ( expo-image-manipulator ) in the web environment because on the web, the URI format is a Blob, and expo-image-manipulator does not support Blob conversionAnd for the 'Choose File' option, I believe the issue occurs because the uploaded image only converted on showImagePicker and not on showDocumentPicker
|
Ok ok sorry for the delay here... @nyomanjyotisa since you're assigned here, can you please summarize where your latest proposal stands? If you & @parasharrajat agree we will need a new lib (https://github.com/hoppergee/heic-to) & it looks safe to use, I will have to bring it to slack again & get it approved before we can move forward |
Proposal updated |
Looks like that @Beamanator Technically, proposal looks good to me. I leave the decision to select the lib up to you. |
@Beamanator Can you please review this Library with the help of team? Are we good with directly installing the package from the github repo? |
Bump @Beamanator |
juuuuust got back from vacay, will get to this soon but probably not today |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.18-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @Beamanator
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1723093506634689
Action Performed:
Expected Result:
Image should upload & scan
Actual Result:
Saw error message "Invalid file type"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
RPReplay_Final1723093247.MP4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @BeamanatorUpwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: