Content
View differences
Updated by Oliver Günther almost 6 years ago
ATM all attachments will be downloaded, effectully spamming the user’s download folder.
Instead, and, based on the attachment’s mime type, open it either in a separate window/tab and let the browser decide on how to handle it, or download it right away.
Provable candidates for in-browser viewing would be
\- application/x-pdf, image/**, text/** and so on
For images and text, the content-disposition is already set to inline. Extending this for PDFs would be trivial.
Instead, and, based on the attachment’s mime type, open it either in a separate window/tab and let the browser decide on how to handle it, or download it right away.
Provable candidates for in-browser viewing would be
\- application/x-pdf, image/**, text/** and so on
For images and text, the content-disposition is already set to inline. Extending this for PDFs would be trivial.