Closed Bug 192501 Opened 23 years ago Closed 23 years ago

Content-Disposition filename displayed incorrectly in save file dialog box

Categories

(Core Graveyard :: File Handling, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 65827

People

(Reporter: bugs, Assigned: darin.moz)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 When sending headers for a file download, the filename is displayed incorrectly in the save file dialog box. For instance, the headers below are sent from a file name index.php: Content-Type: application/octet-stream Content-Disposition: attachment; filename=text.doc The resulting filename in the save dialog would be "text.doc.php". If the Content-Type header is not sent, then the filename becomes "text.doc.html". Reproducible: Always Steps to Reproduce: 1. Send header: Content-Type: application/octet-stream 2. Send header: Content-Disposition: attachment; filename=myfile.txt 3. Click OK to save the file to disk Actual Results: Filename in save dialog box is displayed as "myfile.txt.php", or "myfile.txt.html" if the Content-Type is not sent. Expected Results: The filename should have been displayed as "myfile.txt". This has only been tested using PHP 4.1.2.
*** This bug has been marked as a duplicate of 65827 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Component: Networking: HTTP → File Handling
QA Contact: httpqa → petersen
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.