Skip to content
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

Use the "Content-Disposition" header to let users retain original filenames. #1

Open
rebane2001 opened this issue Apr 4, 2021 · 1 comment

Comments

@rebane2001
Copy link

If you use the "Content-Disposition" header on the downloads of files, you can have them download with the original filename while keeping the link with a randomized one. This would be very useful for sharing files where the filename is important.

@BBaoVanC
Copy link

Here's what I have in mind for how this could be implemented:

Add a checkbox to the upload page called "Preserve filename". If the checkbox is ticked, then the filename will be saved and the Content-Disposition header will be added. Otherwise, the file will be downloaded with the same filename as the URL.

I think I might try and work on this myself in a couple of days.

ZizzyDizzyMC pushed a commit that referenced this issue Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants