Closed
Bug 131402
Opened 22 years ago
Closed 22 years ago
text/plain should be exempt from Windows filename extension-adding.
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 120327
People
(Reporter: jonasj, Assigned: law)
References
()
Details
Build 2002031103, Win2k. When trying to save <http://www.gerv.net/software/patch-maker/pm>, Mozilla adds the extension ".txt". This happens because the server sends Content-Type: text/plain. I'm filing this under File Handling, but I'm not really sure whether this is Mozilla's or Gerv's fault. Something needs to be done about this, though, as the Perl script will not work if it is called anything else than "pm".
Comment 1•22 years ago
|
||
This is a bit of a problem; if I put a file up with no extension, the webserver sends it as text/plain. This seems reasonable. It also means people can look at the script online. Mozilla adds ".txt" on Windows to text/plain files, because it's the local naming convention. This is also reasonable. However, the two together cause problems. I think I may have to have a "View" link and a "Download" link to a tarball. Gerv
Assignee: law → gerv
Reporter | ||
Comment 2•22 years ago
|
||
That wouldn't solve the problem. I'd still prefer to save the View link since that would save me the trouble of having to pull the file out of the tarball. There's also a lot of other sites out there which sends text/plain for files that aren't really txt files. I don't think it's reasonable to add .txt to text/plain files. What's the advantage of it anyway? I see why adding .gif to an image.cgi which sends image/gif can be useful, but I think that text/plain should be an exception.
Comment 3•22 years ago
|
||
That's a fair point. Reassigning back to default owner for consideration of that idea. Gerv
Assignee: gerv → law
Summary: ".txt" extension is added to http://www.gerv.net/software/patch-maker/pm → text/plain should be exempt from Windows filename extension-adding.
Comment 4•22 years ago
|
||
*** This bug has been marked as a duplicate of 120327 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Perhaps the web server could serve this particular file with an appropriate Content-Disposition header to specify the save-as name?
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•