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 · 1 comment
Open

Original file name in content-disposition HTTP header #104

HT-7 opened this issue May 18, 2024 · 1 comment

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.

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