Skip to content

[Bug] onwarning event works not correct with Max files error and drag and drop in Chrome browser #868

Open
@AlexeyUna

Description

@AlexeyUna

Is there an existing issue for this?

  • I have searched the existing issues

Have you updated FilePond and its plugins?

  • I have updated FilePond and its plugins

Describe the bug

This problem is occurred only in Chrome browser and in case when you are using drag and drop methods to add files to the filepond uploading area.
To view the problem you can log the data in onwarning event like:

onwarning: (oObject) => {
                    const { body, type } = oObject;
                    if (type === 'warning' && body === 'Max files') 
                        console.log(oObject);
                },

Reproduction

  1. set option maxFiles to 5
  2. open area with files and select 5 items -> then drag and drop them to filepond uploading area
  3. remove 4 files from filepond uploading area after finishing
  4. open area with files again and drag and drop at least one file

So, you will see that now there are only 2 files in filepond area, but onwarning still occurs with Max files error.

Environment

- Device: PC
- OS: MAC Sierra, Windows 11
- Browser: Chrome 99+

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