Can't Add Attachments with Long File Names Using Windows
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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
Symptoms
When adding an attachment by clicking 'Attachments', then 'Browse', navigating to a file and then clicking 'Open', the file path will not be displayed in 'Attach File' section. No error will be given.
Cause
The file path contains too many characters (anywhere between 240 and 260) for Windows to handle. Using any other OS will attach the file without incident.
Resolution
- Rename the file path to something shorter.
- Copy the file to a temporary directory with a shorter file path.