Skip to content

FileUploaderDropzone does not honour acceptedMimeTypes on drag/drop #4377

@Laurafulx

Description

@Laurafulx

Description

The FileUploaderDropzone does not block drag/drop of files if they do not have the correct acceptedMimeTypes. These files will appear in the FileUploaderItem list regardless of their type.

Link to Reproduction

https://paste.twilio.design/components/file-uploader

Steps to reproduce

  1. Set acceptedMimeTypes on the FileUploaderDropzone component
  2. Upload file via browse
  3. Observe only the files with the acceptedMimeTypes are selectable
  4. Drag any file into the dropzone
  5. Observe file successfully adds even if it does not have the correct acceptedMimeTypes

Paste Core Version

20.20.0

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Active DiscussionThis discussion is still in progressArea: ComponentsRelated to the component library (core) of this systemType: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions