Open Bug 348425 Opened 18 years ago Updated 2 years ago

Offer option to rewrite file extension based on Content-Type/-Encoding on saving

Categories

(Toolkit :: Downloads API, enhancement)

enhancement

Tracking

()

People

(Reporter: mozilla, Unassigned)

Details

Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8.0.5)
   Gecko/20060729 Firefox/1.5.0.5

Often, files are served with different extensions then they should normally have, depending on the MIME-type specified in the HTTP header, or no extensions at all.

Examples:
- http://rsw.beck.de/rsw/shop/default.asp
  (Content-Type: text/html)
  Firefox wants to save as "default.asp" whereas for the user it would
  be much more useful if it would be saved as "default.html".
  (SeaMonkey does it better, and offers to save as "default.asp.html").
- http://front.math.ucdavis.edu/math.AP/0101001
  click on the PS icon (leftmost icon just above the title line)
  (Content-Type: application/postscript, Content-Encoding: gzip)
  Gets saved as "0101001.gz" whereas it would be better to save it as 
  "0101001.ps.gz".
- http://arxiv.org/ps/astro-ph/0601250
  (Content-Type: application/postscript, Content-Encoding: gzip)
  This gets saved without any file extension, saving as 
  0601250.ps.gz would be better.
- http://arxiv.org/pdf/astro-ph/0601250
  (Content-Type: application/pdf)
  This gets saved without any file extension, too. Saving as 
  0601250.pdf would be better.

Not all users might want this file extension rewriting, so this should probably be an option.
OS: OS/2 → All
Hardware: Other → All
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: [RFE] Offer option to rewrite file extension based on Content-Type/-Encoding on saving → Offer option to rewrite file extension based on Content-Type/-Encoding on saving
Product: Firefox → Toolkit

Mass-removing myself from cc; search for 12b9dfe4-ece3-40dc-8d23-60e179f64ac1 or any reasonable part thereof, to mass-delete these notifications (and sorry!)

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.