Open
Bug 125216
Opened 23 years ago
Updated 3 years ago
FilePicker doesn't support defining a filter via a MIME type
Categories
(Core :: Widget, enhancement, P5)
Core
Widget
Tracking
()
NEW
People
(Reporter: jmt, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 obsolete file)
The file picker only supports defining file filter types based on extension;
this is nasty. Attached is an additional IDL method, AppendMIMEFilter, whcih
takes an nsIMIMEInfo as an argument. On Unix / Win32, this simply maps to an
extension, but on Mac, we can extract the type and creator codes directly.
I'm guessing this might be useful on other platforms too, eventually, since a
MIME type is about the only cross-platform way of describing a file type.
Reporter | ||
Comment 1•23 years ago
|
||
The propsoed extension the the nsIFilePicker interface, and implementation on
Mac and Windows
Updated•22 years ago
|
QA Contact: sairuh → petersen
Updated•22 years ago
|
Reporter | ||
Comment 2•22 years ago
|
||
Just so you know, I have updated patches locally for this, the existing patch is rotten.
Reporter | ||
Comment 3•22 years ago
|
||
Comment on attachment 69225 [details] [diff] [review]
Extra IDL method, mac and Windows impls
Will post an updated patch if required, but it means seperating it from other
mods to the file picker, so will wait till someone asks.
Attachment #69225 -
Attachment is obsolete: true
Comment 4•21 years ago
|
||
In BeOS MIME support is incorporated in FS structure natively (as metadata
implemented in node attributes), so i will look at that, probably next weekend
Comment 5•21 years ago
|
||
I looked at BeOS port implementation of nsFilePicker.
Currently it don't use filtering.
Though, at some point in future it can be easily implemented, as native BeOS
file Open/Save dialog, so called BFilePanel has related class, BRefFilter, which
includes boolean hook function Filter(*,*,*, const char *mimefiletype);
I think that filtering wasn't implemented before because dealing with extensions
in BeOS is almost useless and senseless (those are used mostly for sniffing - as
workaround for externals filesystems without metadata) and needs tricking and
hacking.
But for mimestrings it will be very straightforward.
But at moment for this bug we need (in BeOS port) only addition of simplest
implementation of
nsFilePicker::AppendMIMEFilter(nsIMIMEInfo *aMIMEInfo) which just adds
mimestrings to list, preferably in ascii/utf-8 format.
Updated•15 years ago
|
QA Contact: chrispetersen → file-handling
Updated•8 years ago
|
Product: Core → Firefox
Version: Trunk → unspecified
Comment 6•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:Gijs, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: jmt → nobody
Flags: needinfo?(gijskruitbosch+bugs)
Comment 7•3 years ago
|
||
nsIFilePicker
is in Core :: Widget now.
Component: File Handling → Widget
Flags: needinfo?(gijskruitbosch+bugs)
Product: Firefox → Core
Comment 8•3 years ago
|
||
I don't expect this to get addressed anytime soon.
Severity: normal → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•