MikeNolan is looking for a way to display attached .txt files in a post instead of requiring them to be downloaded. Initially, MikeNolan thought it was a Discourse setting, but then believed it was controlled by browser settings. However, Escovan suggested using literal text inclusion, which would require manually copying and pasting the contents, as noted by NateDhaliwal and Heliosurge. Heliosurge also mentioned a theme component for inline PDF previews, but it only works on desktop. pfaffman suggested that a custom theme component could be created to insert the file into the DOM, although this has been discussed before with similar conclusions.
We have a category for reports that are sent via email to staff, board members and others.
We’ve set it up so these are also posted to a category called Reports.
However, the only option I’m seeing is to download the file, when what I’d really like is for it to be displayed on-screen. (They’re fixed field formatted reports, which is why we’re doing them via attachments, otherwise email programs will mess up the column formatting.)
Is there a way to have a .txt file displayed in a post?