Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
AlexeyUna opened this issue Oct 24, 2022 · 0 comments
Labels

Comments

@AlexeyUna
Copy link

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+
@AlexeyUna AlexeyUna added the bug label Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant