Incorrect content type set for uploaded files in Confluence

I've clicked Write a comment ... at bottom of the page and then dragged-in a file named testing_transition.patch into the editor.

File was uploaded and link was added to the editor, however in the database in ATTACHMENTS table CONTENTTYPE column was set to application/x-upload-data instead of text/plain, which is indicated in confluence-install/confluence/WEB-INF/classes/mime.types file.

Also it seems, that confluence provided mime.types file is very small comparing to one, provided in CentOS installation.

3 answers

1 accepted

1 vote
Answer accepted

Hello Dimitry,

Can you clarify what version of Confluence you are using?

We have the following bug that deals with an earlier version of Confluence (3.1)

That seems to suggest that there is a problem with the mime types when performing a drag and drop upload. Are your results different if you do not drag and drop?

I would like a chance to try to replicate this behavior on my test machine. If later than 3.1 we may be seeing a regression of this earlier bug.

I'm using Confluence 4.3.6 and this issue was confirmed by Attlasian support and bug report was created.

Hi Dmitry,

Yes, just to let the community to know, that we created a bug report for it, as you can see here:




Still same problem in Confluence 5.2

0 votes

Hi Dmitry,

Can you confirm what is the consequence in Confluence of having the wrong mimetype?

Are you having to download the patch rather than view it in the browser?



Yes, because of incorrect mime content type detected patch is downloaded instead of being shown directly in browser.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,023 views 2 13
Read article

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