szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.66k stars 167 forks source link

Configuration option for Content-Disposition: attachment header #213

Open disconsented opened 1 year ago

disconsented commented 1 year ago

Is your feature request related to a problem? Please describe. The Content-Disposition: attachment header causes files to always be downloaded (at least in firefox), this isn't always the desired behaviour. When sharing images, for example, I largely want to show them in the browser rather than have them be downloaded.

Describe the solution you'd like An option to control this would be ideal, maybe like the existing global config options?

Describe alternatives you've considered Perhaps scope this header to specific types? I.E. not images and text files

Removing it would be another option, likely undesirable.

Additional context N/A