Project

General

Profile

Actions

Defect #44335

open

PDF preview of .ai attachments triggers an automatic download

Added by Katsuya HIDAKA 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Resolution:
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 using Redmine::MimeType.of.
  • MiniMime maps the .ai extension to application/pdf, so .ai attachments are rendered using the PDF preview.

Files

clipboard-202608101900-tcnse.png (62.7 KB) clipboard-202608101900-tcnse.png Katsuya HIDAKA, 2026-08-10 12:00

No data to display

Actions

Also available in: Atom PDF