-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
The acceptedFileTypes
option is comparable to the DOM accept
attribute (it is even populated from the attribute in a progressive-enhancement configuration), so I find myself wanting to use it as a drop-in replacement.
If acceptedFileTypes
contains a file extension, .blah
, it is passed on to accept
so that the file chooser narrows the selection to .blah
files as desired (in most browsers), but the plugin does not validate .blah
files.
While fileValidateTypeDetectType
can be used to cause .blah
files to be validated, it is an onerous way to configure a behaviour that would work with accept
: a MIME type and an extension needs to be included in acceptedFileTypes
and the detection function needs to be written.
hungdev, yangzhaofeng, prince272, davidbozo, wisniewski94 and 12 moremsschl and philippjfr