Actions
Defect #44335
closedPDF preview of .ai attachments triggers an automatic download
Defect #44335:
PDF preview of .ai attachments triggers an automatic download
Resolution:
Fixed
Affected version:
Description
When an Adobe Illustrator (.ai) file is attached to an issue, opening the attachment details immediately starts a download. Clicking “Open in full view” also starts a download.

The likely cause is the filename-based PDF preview detection:
Attachment#is_pdf?determines the file type from the filename usingRedmine::MimeType.of.MiniMimemaps the.aiextension toapplication/pdf, so.aiattachments are rendered using the PDF preview.
Files
Actions