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
Accepted answer

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 2 hours ago in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

62 views 0 7
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