-
Notifications
You must be signed in to change notification settings - Fork 347
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
Download files with original filename #3303
Conversation
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
the file name of a PDF is different in care and download |
Hey, I am unable to replicate this issue. The file downloads correctly for me, with the correct file name. Could you take a look at this again? If the issue persist, please let me know the steps which lead to the issue. Side note: Please note that the file name is added only when the "Download" button is pressed. If the file automatically downloads, without you even pressing the download button, then your browser is triggering the preview as a download. Which would be unrelated to this issue. (Related to previewing files) |
test approved |
Kudos, SonarCloud Quality Gate passed!
|
Fixes #3286
This PR changes the way files are downloaded on the Patient Dashboard page, Instead of just using a blob, this PR makes it so that a filename is specified in the
download
attribute, which makes the browser save the blob with the specified filename. This allows us to download files with the same name and extension as they were originally uploaded.Previous Behavior :-
Uploaded name: sample1.jfif
Downloaded name: d5q2wwc-fa5ee......txt
New Behavior:-
Uploaded name: sample1.jfif
Downloaded name: sample1.jfif