wildcard matching of filenames to mimetypes

NEW
Unassigned

Status

()

Firefox
File Handling
--
enhancement
17 years ago
2 years ago

People

(Reporter: bjoern, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

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
Status: UNCONFIRMED → NEW
Component: Browser-General → File Handling
Ever confirmed: true
QA Contact: doronr → sairuh

Updated

17 years ago
Target Milestone: --- → Future
(Reporter)

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
(Reporter)

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

Updated

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.