Skip to content

File type validation behaves differently when dropping a folder #36

@alex7654

Description

@alex7654

I set up file type validation with the folloing accepted types:

acceptedFileTypes: [
'image/',
'audio/
',
'video/',
'text/
',
'application/pdf',
'application/msword',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.ms-powerpoint',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/application/vnd.openxmlformats-officedocument.presentationml.slideshow',
'application/x-zip-compressed',
],

When dropping files directly (not dropping a folder) it works perfectly (see attached image validateType_directly.png).
When dropping a folder containing the exactly same files as before, some (but not all) files types are blocked (see attached image validateType_folder.png), although they should be accepted.

So it seems, files are processed differently when a folder ist dropped.

Any advice is highly appreciated.

PS:
After deactivation of FilePondPluginFileValidateType, upload works correctly, no matter if the files are contained in a folder or not (of course all files are accepted in this case).

validateType_directly
validateType_folder

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions