Is there a way to display an attached txt file rather than require it be downloaded?

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?

1 Like

Apparently this is controlled at the browser settings level, so never mind.

2 Likes

The easy solution would be for you to use the literal text inclusion (CTRL+e) like this:

This would be the content of you text file
It's fixed formatted
Good luck

image

But wouldn’t the user have to manually copy and paste the contents in?

I believe so. If pdf can work for your needs there is this theme component. But says desktop only.

2 Likes

This has come up several times and seems to have had the same answers.

Seems like there might be a way to make a theme component that would insert the file into the DOM if you really wanted ot.

1 Like