PDF attachment content type "application/force-download"

When adding a PDF as attachment to a page, the content type of the attachment is usually set to application/pdf. However, sometimes it is set to application/force-download. In this case, the document is not displayed by the browser, the document is downloaded instead. It has to be changed to application/pdf manually to work as expected.

Does anyone know, how the content type for uploaded attachments is determined?

1 answer

1 accepted

1 vote

Hi Michael,

I hope you are using Firefox!

It seems to be a browser problem acording to the following similar references:

I do think there is a FireFox issue playing some role:
http://jsbin.com/ulamor/213/edit?html,css,console,output
FireFox returns "application/force-download" where Chrome and Safari both return "application/pdf"

Alright, this seems to be a Firefox "bug" (at least I'll refer to it as a bug, the developers don't) discussed in https://bugzilla.mozilla.org/show_bug.cgi?id=373621

 

You could try to use another browser to confirm that.

Kind regards,

Daniel P Santos

Yes, you're right. I verified it with Chrome and IE and both are working fine. So, I assume, we have to live with that. Thank's for pointing me in the right direction.

You are welcome Michael! We are here to help. :)

Hi,

I have exactly the same problem with Confluence and Firefox 38.2.1 on Mageia.

Thank's for your answer.

Gilles Versepuech

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

251 views 11 10
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you