Closed Bug 46071 Opened 25 years ago Closed 25 years ago

MIME header: Content-Disposition: filename= won't work

Categories

(Core :: DOM: HTML Parser, defect, P3)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: bukagedi, Assigned: rickg)

References

Details

Header Content-Disposition: filename="newName" doesn't change the contents of Save As dialog box. Take a look to the php program below: $pathToFile="/home/Gedas/testFile.txt"; $docHeader = "MIME-Version: 1.0\n". "Content-type: application/octet-stream; name=\"". basename($pathToFile)."\"\n". "Content-Transfer-Encoding: binary\n". "Content-Disposition: filename=\"". basename($pathToFile)."\"\n". "Content-Length: ". (string)filesize($pathToFile)."\n". "\n"; header($docHeader); readfile("$pathToFile"); Your agent shows the name of a php program (testFile.txt must be shown).
I'm pretty sure this works. Could you attach the resulting mail?
-> Parser. Rickg - do we honour Content-Disposition? Gerv
Assignee: asa → rickg
Component: Browser-General → Parser
QA Contact: doronr → janc
*** Bug 53768 has been marked as a duplicate of this bug. ***
Setting to new so someone can look at this.
Status: UNCONFIRMED → NEW
Ever confirmed: true
The header: Content-Disposition: filename=abc.exe is invalid according to the spec (rfc2616) The attribute filename is only valid after a ";"
Status: NEW → RESOLVED
Closed: 25 years ago
OS: Linux → All
Hardware: PC → All
Resolution: --- → INVALID
updated qa contact.
QA Contact: janc → bsharma
*** Bug 70910 has been marked as a duplicate of this bug. ***
QA Contact: bsharma → moied
You need to log in before you can comment on or make changes to this bug.