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)
Core
DOM: HTML Parser
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).
Comment 1•25 years ago
|
||
I'm pretty sure this works.
Could you attach the resulting mail?
Comment 2•25 years ago
|
||
-> Parser. Rickg - do we honour Content-Disposition?
Gerv
Assignee: asa → rickg
Component: Browser-General → Parser
QA Contact: doronr → janc
Comment 4•25 years ago
|
||
Setting to new so someone can look at this.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•