Download file doesn't have the same name as preview
If you havenβt already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue is failing PR https://github.com/Expensify/App/pull/4736
Action Performed:
- Navigate to staging chat
- Upload any word document (docx) or non-preview document
- Clicking on download file
Expected Result:
The download file should give the same filename as preview.
Actual Result:
The download file has different name than preview file.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: 1.0.88-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

https://user-images.githubusercontent.com/44479856/131056638-1a1fcfc5-8dfc-41fb-b7dc-68cc73f33181.mp4
Expensify/Expensify Issue URL:
Triggered auto assignment to @ctkochan22 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
:wave: 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:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
@thienlnam @akshayasalvi I noticed this behaviour was present when working on the PR (mentioned here) Should this still be considered a deploy blocker even if it's failing the PR?
~Proposal~ Suggestion
- We should pass the filename as a second paramter to the
fileDownloadmethod. https://github.com/Expensify/App/blob/5e883f3da811567e2bce647a61c0b570719705bb/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly/index.js#L31 fileNameis already available as a prop here.
Yeah. We were not able to test it from localhost. I had recently added the fileName in the param. Iβll be raising the changes for the pr in a while.
Awesome @akshayasalvi. Please tag this issue into your PR as well.
PR Raised and issue tagged.
I noticed this behaviour was present when working on the PR
Do we know if this is a regression? I can't recall if this was ever working or not. If not let's remove the deployBlocker label.
So this is something new and issues are found for a new feature then it's good to push the new feature to the prod with fixes. so I think this justifies as a deployBlocker.
Oh, didn't notice this was new. Sure, we just don't want to block the release for something that currently exists in prod.
But it's already being fixed here https://github.com/Expensify/App/pull/4871 so we can just CP it. Should be quick.
PR is deployed and working.

Fix worked! https://github.com/Expensify/App/pull/4871#issuecomment-907365363 removing the deploy blocker label
Looks like we can close this right? Good job @akshayasalvi
Thank you
π Deployed to staging by @sketchydroide in version: 1.0.88-3 π
| platform | result |
|---|---|
| π€ android π€ | cancelled πͺ |
| π₯ desktop π₯ | cancelled πͺ |
| π iOS π | cancelled πͺ |
| πΈ web πΈ | success β |
π Deployed to production by @roryabraham in version: 1.0.88-2 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | failure β |
| πΈ web πΈ | success β |
π Deployed to production by @roryabraham in version: 1.0.90-2 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | failure β |
| πΈ web πΈ | success β |