Skip to content

Upload UI ignores "accept" property (file type filter) #7061

@mstahv

Description

@mstahv

Description

If you allow only .csv files, and drag a jpg file (or e.g. text from a notepad) on vaadin-upload, it looks like it would be just fine to drop it. Then when you drop it, some internals of the component properly skips accepting that, but no indication is given to user -> thus it looks like the component is broken.

Expected outcome

There should be some hint in UI that invalid d&d payload (other but files matching the accept filter) will not be accepted.

Minimal reproducible example

Steps to reproduce

Try to drag text clip form notepad on vaadin-upload.

Environment

Vaadin version(s): 24.3.2
OS: Mac

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions