Closed Bug 171663 Opened 23 years ago Closed 23 years ago

"Content-Disposition: attachment" filename not honored correctly (page extention appended)

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 65827

People

(Reporter: andrewcrowe_uk, Assigned: asa)

References

()

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1b) Gecko/20020721 Writing the html headers Content-Disposition: attachment; filename=test2.jpg Content-Length: 123456 Content-type: application/download From a .php page result in Mozilla changing the filename to "test2.jpg.php" even though the data being sent is a JPEG image that I want people to download While the user can rename the file to .jpg, it should give the correct filename initially Reproducible: Always Steps to Reproduce: 1. create a dynamic page that sends those headers along with file data Actual Results: The "save as" filename was incorrectly written Expected Results: Mozilla should have saved the file with the correct filename (at least I'd have thought so) Trying to "cheat" by using various malformed or extra headers so far has not worked
I guess this is a duplicate of 144334. I'm not sure, though.
Not the same situation, but possibly caused by the same thing...
I encounter the same problem when writing the content from a servlet. dot-servletname is applied as a suffix to the filename provided.
*** This bug has been marked as a duplicate of 65827 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.