The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features
See the new ForumsYou need to be logged in to post in the forums. If you do not have an account, please sign up first.
Input File-Type: ACCEPT Parameter Filtering on File Dialog Select
I like that Opera does filter file-types based on the ACCEPT parameter of FILE type of INPUT elements but the filtering is based on the first listed MIME-type, instead of all listed MIME-types (incidentally, the manner which Chrome has implemented their file dialog).I'd really love if Opera initially filtered not based on the first listed ACCEPT MIME-type but on all listed MIME-types and then perhaps in their drop-down display filter box listed all of the MIME-values that are accepted (along with the 'safety' option of 'All files').
The outcome being that Opera's File-Select Dialog Box would display filter based on all-accepted types. So if did:
<input type="file" accept="image/gif,image/png,image/bmp,image/jpg">
It would display all of my listed image types (I suspect I could just use accept="image" so let me give another case).
<input type="file" accept="application/pdf,application/zip,text/plain,application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document">
Which would allow PDFs, ZIP files, Plain text files, MS Word ".doc" files and MS Word ".docx" files.
Yum
P.S. Note this is a usability request, not a replacement for Server Side checks of file-types or Javascript validiation. I'd just rather help the user by displaying the relevant files, rather than their whole directory content (at least to the browsers cool enough to implement the ACCEPT attribute)
With:
, I get 4 choices in the drop-down in the open file dialog.
type1
type2
type3
All Files
Are you saying that you want it to be:
All Accepted
type1
type2
type3
All Files
?
<input type="file" accept="type1, type2, type3">
, I get 4 choices in the drop-down in the open file dialog.
type1
type2
type3
All Files
Are you saying that you want it to be:
All Accepted
type1
type2
type3
All Files
?
+1
The DnD Sanctuary — a safety net for My Opera's demise.
+1, all major programs I know have that option.
All my posts only represent my own opinions.
[ Tweedo Monitor - Deluxe Website & Service Monitoring ]
[ Tweedo Monitor - Deluxe Website & Service Monitoring ]