Adding MIME types to Bamboo Standalone

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Bamboo Standalone ships with the Jetty application server (see Bamboo 'distributions'). To add additional MIME content types, edit the mimetypes.xml file in ../<Bamboo-install>/atlassian-bamboo/WEB-INF/mimetypes.xml and insert your new mime-mapping.

For instance to add an additional text/plain mime type with txt2 extension, insert the following:

1 2 3 4 <mime-mapping> <extension>txt2</extension> <mime-type>text/plain</mime-type> </mime-mapping>

Restart Bamboo, for the changes to take effect. If you have any elastic agents running, ensure that they are shut down before you restart the Bamboo server. If you do not shut down your elastic instances before restarting, they will continue to run and become orphaned from your Bamboo server.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.