Filepond: When `allowMultiple` is disabled, display error when dropping multiple files

Created on 9 Oct 2018  路  7Comments  路  Source: pqina/filepond

This is a feature request.

Filepond with allowMultiple=false displays no error at all if multiple items are drag-and-dropped. They just disappear without any feedback.

The user will end up blaming the app, or writing support tickets; instead of noticing that they can drag-and-drop only one file.

enhancement

Most helpful comment

Adding to this request, the maxFiles seems to have a similar effect.
If I set allowMultiple=true and maxFiles=5, then when dragging more than 5, there's no feedback on the screen and it looks like a bug. Clicking from the file browser has a similar effect.

All 7 comments

Good point, I've been meaning to introduce some generic visual error state but haven't gotten around to it. A good start would be to at least communicate the error state via callback so a custom error message can be shown.

Adding to this request, the maxFiles seems to have a similar effect.
If I set allowMultiple=true and maxFiles=5, then when dragging more than 5, there's no feedback on the screen and it looks like a bug. Clicking from the file browser has a similar effect.

Hi! Any news on this?

Still on the list, bugs have priority, still want to add this but haven鈥檛 had time yet

Hi @rikschennink
I agree with @minuz. When uploading more files then maxFiles nothing happens, a message for the user would be helpful. Do we have any other way to handle this?

Thank you for your work on this product =)

@SaschaHeyer Thanks!

Until this is default functionality you can use onwarning to capture the error and render a warning yourself.

@rikschennink great that's working

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mvrhov picture mvrhov  路  4Comments

irfancnk picture irfancnk  路  7Comments

paul-siteway picture paul-siteway  路  4Comments

samjmckenzie picture samjmckenzie  路  3Comments

madrussa picture madrussa  路  6Comments