It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to not download a text file attachment in Jira but view it in the browser?

We attach a lot of log files (.txt) to our jira issues and when I click on them the browser (Chrome and Firefox) only wants to download the file.

I distinctly remember in older versions of Jira or the browswers where you could open the txt files directly in the browser which is much more convienant.

Any ideas?

3 answers

1 accepted

1 vote
Answer accepted
Alek Atlassian Team Sep 26, 2012

You may set "Internet Explorer MIME Sniffing Security Hole Workaround Policy" in Administration -> General Configuration to "Work around Internet Explorer security hole" or to "Insecure: inline display of attachments". You probably have this configured as "Secure: forced download of attachments for all browsers" .

But remember that showing some attachments inline (for example flash animations) may open security holes in your instance.

Does this configuration helped?

I'm on a Mac so an IE solution won't work for me. I'd hate to use IE even if I was on a PC.

I know this use case used to work. I just don't know if the browsers changed or if Jira somehow changed the way it creates the hyperlink for attachments.

Alek Atlassian Team Sep 27, 2012

Did you check that configuration? It's not only IE related - it works with Firefox, Opera and Chrome and Leopard.

If you have "Insecure: inline display of attachments" set then this may be your browser configuration that causes this behaviour.

I get it now and yes the issue was the 'Internet Explorer MIME Sniffing Security Hole Workaround Policy' setting Jira->Admin->General Config->Options.

It's soooo nice to not have to download a text log file anymore. Thanks!

This works with txt but what about csv or doc or docx or xlsx?
Please give our solution.
Costumers want just to view attached files, without downloading.
Thank you.

0 votes

Mmm, that's more a function of the browser than the web-application. You should be able to tell your browser to open text files (and almost anything else) in the browser, rather than downloading and opening it.

It's a browser setting, Jira hasn't changed. Firefox still downloads the attachment inline.

Maybe it's your settings and you need to tell Safari that it's a safe file?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

303 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you