Closed Bug 152595 Opened 22 years ago Closed 22 years ago

Content-Disposition File Name

Categories

(Core Graveyard :: File Handling, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 120327

People

(Reporter: michael.hunton, Assigned: law)

Details

When using the following PERL code to generate HTML to direct the browser to 
download data and store in a local PC file, the download file name appears to 
be modified with an extension matching the extension of the currently executing 
CGI program. 

    print "Content-Type: \"application/octet-stream\"\n";
    print "Content-Disposition: filename=$dl_file_name\n";
    print "Accept-ranges: bytes\n";
    print "Content-Length: $size\n\n";

if $dl_file_name is "XYZ", the filename created on the PC is "XYZ.pl". When 
using IE, the resultant file name is "XYZ". When using Netscape, the resultant 
file name is the full CGI program name (i.e., "Download.pl). 

The preferred file name is "XYZ".
please search before filing

http://bugzilla.mozilla.org/buglist.cgi?&product=Browser&short_desc=Content-Disposition&short_desc_type=substring
found 22 bugs.

*** This bug has been marked as a duplicate of 98360 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Yeah...  Except that's the wrong bug, timeless.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---

*** This bug has been marked as a duplicate of 120327 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → DUPLICATE
doh. i knew this would bite me

vrfy dupe
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.