Don't name attachment files "attachment.txt" by default, because this confuses IE

RESOLVED FIXED in Bugzilla 4.2

Status

()

Bugzilla
Attachments & Requests
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: Frédéric Buclin, Assigned: Frédéric Buclin)

Tracking

Bugzilla 4.2
Bug Flags:
approval +

Details

(URL)

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
As I said on my blog (see the URL field), if an attachment is named "attachment.txt" (or "attachment.html", etc...), IE 6 and IE8 (and I guess IE7 too) automatically download the attachment instead of displaying it inline. They totally ignore the MIME type. Bug "attachment.txt" is the name I used for attachments created by pasting text into the text field, see bug 119703. So we must choose a better name, e.g. "file.txt", which doesn't confuse IE.
(Assignee)

Comment 1

7 years ago
Created attachment 462573 [details] [diff] [review]
patch, v1

Appending the bug ID generates some randomness which will prevent too many files to have the same name, just in case.
Attachment #462573 - Flags: review+
(Assignee)

Comment 2

7 years ago
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified attachment.cgi
modified post_bug.cgi
Committed revision 7422.
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Flags: approval+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.