wildcard matching of filenames to mimetypes




File Handling
17 years ago
2 years ago


(Reporter: bjoern, Unassigned)


Firefox Tracking Flags

(Not tracked)




17 years ago
I want to open .ps.gz files with the same program as .ps files
Mozilla does not allow 2 dots in the extension field. the extension "ps.gz" is
reduced to "psgz". Would be nice to allow the dot in the middle.
To file handling... This is likely a dup of the bug about recognizing
content-encoding from files and the like...
Assignee: asa → law
Component: Browser-General → File Handling
Ever confirmed: true
QA Contact: doronr → sairuh


17 years ago
Target Milestone: --- → Future

Comment 2

16 years ago
no, this is not abount recognizing anything this is about file extensions
containings dots.
A file extension cannot contain dots by definition....  They are dot-delimited. 
What you're really asking for sounds like wildcard matching of filenames to
mimetypes (so *.ps.gz would map to application/postscript, eg?)

Thing is, just mapping .ps.gz to application/postscript is not sufficient unless
your helper does its own gunzipping.  Another approach is to be able to map .gz
to gzip-encoded (so that mozilla gunzips it before passing to helper), map .ps
to application/postscript, and have mozilla do the right thing with .ps.gz
(gunzip and pass to application/postscript helper).

I feel the "other approach" is better, but the one you ask for is admittedly
more flexible....
QA Contact: sairuh → petersen

Comment 4

16 years ago
okay, I renamed the summary to wilcard matching of filenames to mimetypes. This 
would really be nice to have. 
Summary: file extensions should allow multiple extensions → wildcard matching of filenames to mimetypes
Assignee: law → nobody
QA Contact: chrispetersen → file-handling


2 years ago
Component: File Handling → File Handling
Product: Core → Firefox
Target Milestone: Future → ---
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.