Skip to content

Support extensions in acceptedFileTypes #13

@BudgieInWA

Description

@BudgieInWA

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions