Unable to download attachment with specific extension

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

Summary

Problem

User seeing the following error when downloading an attachment

(Auto-migrated image: description temporarily unavailable)

Diagnosis

Environment

  • User using IIS

Example of File extensions

  • .cs

  • .csproj

  • .sitemap

  • .mdf

  • .config

Cause

This problem appears if you are using IIS as a proxy server in front of Confluence and the file you are trying to download contains a specific "filtered" extension. By default, IIS contains a filter named "Request Filtering" which prohibit access to specific files and folders.

Solution

Workaround

If the file contains an extension in the list above, it's possible to allow it for download executing the following commands:

  1. To allow downloading a file present in the in the file extensions list (i.e. '.config')

    1 2 3 4 5 6 1. Open an administrator command prompt on the server hosting IIS 2. Execute the following command appcmd set config "Web app name" /section:requestFiltering /-fileExtensions.[fileextension='.config']
  2. To allow downloading a file present in the hidden segments list (i.e. 'web.config')

    1 2 3 4 5 1. open an administrator command prompt on the server hosting IIS 2. execute the following command appcmd set config "Web app name" /section:requestFiltering /-hiddenSegments.[segment='web.config']

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.