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

Original file name in content-disposition HTTP header #104

Open
HT-7 opened this issue May 18, 2024 · 2 comments
Open

Original file name in content-disposition HTTP header #104

HT-7 opened this issue May 18, 2024 · 2 comments

Comments

@HT-7
Copy link

HT-7 commented May 18, 2024

I suggest adding a content-disposition header that contains the original file name.

The content-disposition HTTP header does not work just for downloads, but also for inline files that are previewed in the browser. For example, YouTube channel banners have content-disposition: inline; filename="channels4_banner.jpg", so that file name shows in the title and as a pre-filled file name in the "Save as" window.

@nokonoko
Copy link
Owner

This could possibly leak information not meant to be shared, however adding a option to enable this would work.

@HT-7
Copy link
Author

HT-7 commented Aug 17, 2024

Indeed. I recommend a checkbox on the uploader interface that reads "display file names publicly". It should be enabled by default.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants