App: [HOLD for payment 2022-06-16] [HOLD for payment 2022-06-15] [$500] Uploading an image causes the thumbnail to resize 3 times
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
- Open any chat
- Upload a larger file to share
Expected Result:
Thumbnail should load once uploaded, or if it’s a large file it should display a spinner until it’s uploaded.
Actual Result:
If you share an image, the uploading thumbnail resizes 3 times. Then it finalizes the upload.
Workaround:
Just wait for the file to upload but it’s a jarring experience.
Platform:
Where is this issue occurring?
- Web
Version Number: 1.1.52-0 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
If you click + > add attachment in a DM, and then select this attachment:

You’ll notice it changes to this momentarily:

And then this:

Upwork job URL: https://www.upwork.com/jobs/~01ca59e5811fecf4d5 Issue reported by: @cead22 Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1649352167230159
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 104 (79 by maintainers)
We’ve updated the API in the backend and it has just been merged. The code should be live either tomorrow or Monday.
@chiragsalian Are you good with this https://github.com/Expensify/App/issues/8590#issuecomment-1108978375?
Then let’s put this issue on hold until API is ready. Thanks!
This is still pretty janky, can we make it so:
cc @JmillsExpensify
@chiragsalian Status on PR: Just a few minor changes pending on PR on @chiragsalian final review. Mostly my job is done, here. Moving forward If there is anything major that needs C+ attention, feel free to un-assign me and add a new C+ here, thanks!
cc: @michaelhaxhiu
@allroundexperts The code for having the dimensions as data attributes is now on production 🙂
You mean to return the dimensions from the API right? If so that makes sense to me
These were discussed in the beginning as well but given how code is structured it won’t be easy to do these. Also, this would only work for the uploader of the image. The other users in the chat would still have to see a loader.
On Tue, 24 May 2022 at 10:46 PM, Carlos Alvarez @.***> wrote:
Already on it.
@michaelhaxhiu Applied.
@Santhosh-Sellavel I get it now. Will update proposal.
Cool, my PR hasn’t been reviewed yet and a deploy was done for today so i imagine my PR should be deployed to staging earliest by tomorrow morning. Will keep you updated.
@chiragsalian updating the title as I think @Santhosh-Sellavel is correct !
That is what I mean. But I can’t edit your API responses. Someone from the internal team will have to do that, unless I missed something. @cead22 @Santhosh-Sellavel
Sorry for responding so late, I have exams going on. Please continue with other proposals.
Sorry, if you go to the comment above, I say “can we make it so:…” and list those points. I updated the previous comment to make it clearer