Closed Bug 323888 Opened 19 years ago Closed 19 years ago

Save Link Target As does not honor "filename" data from HTTP header

Categories

(Toolkit :: Downloads API, defect)

x86
FreeBSD
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 299372

People

(Reporter: u197037, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8) Gecko/20051219 Firefox/1.5 Build Identifier: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8) Gecko/20051219 Firefox/1.5 In Mozilla and IE and in "partialy" in FireFox, saving the target honor the filename proposed by http server. The only case when FireFox does not do that: if you are trying to "Save Link Target As...". In this case, FireFox is always propose you a basename of URL instead of propagated "filename" parameter. This is especialy annoing when working with FireFox-viewable MIME types such as images and text, transfered via some CGI interface. to figure the problem out, just try to "Save As" any text attachment from the Bugzilla. You'll be asked for "attachment.cgi" filename instead of file name defined in bugzilla. Reproducible: Always Steps to Reproduce: 1. go to https://bugzilla.mozilla.org/show_bug.cgi?id=312042 2. scroll to any attached patch 3. try to right-click attachment name and choose "Save Link As.." Actual Results: Appeared dialog offers you an "attachment.cgi" as a filename Expected Results: Should offer the actual filename, transfered is HTTP header Also, this affects Linux and Win32 version. Not sure about Mac & others but suppose so.
In Mozilla 1.7.6 (not Firefox) this works as intended. I.e. I click the link for patch of 2006-01-04 10:09 PST and "012throwables.t.v4.diff" is suggested as filename. So IMHO a fix for Firefox should be trivial.
*** This bug has been marked as a duplicate of 299372 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.