Hello, currently XenForo only provides a correct ContentType header / Mime type for image attachments and all other attachments are provided with application/octet-stream content type header which unfortunately forces all other atachments to download. So simple attachments like plain text files, shell scripts etc are forced to be downloaded instead of displayed in browser. Even for pdf documents it would be possible to show them in browser. I found an old addon at https://xenforo.com/community/resources/metamimetype-view-pdf-attachments-in-browser.2888/ but that one was developed for XF 1.x and is unmaintained. Anyone care to share or develop some simple solution? Thanks!
Upvote
3