filepond icon indicating copy to clipboard operation
filepond copied to clipboard

[Feature] React to processed files but ignore errors

Open DavidRouyer opened this issue 11 months ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your feature request related to a problem? Please describe.

I'd like to react to processed files (like the FilePond:processfiles), but the hook is not triggered when some files are in error: https://github.com/pqina/filepond/blob/4f1c4c2c597f5864a198c846acf2595213d0b21e/src/js/app/actions.js#L829-L835

Describe the solution you'd like

2 solutions:

  • Change the behavior of processfiles (breaking change) by triggering it when there are files in error
  • Add a new hook processfileserror triggered when all files are processed and ignoring files in error

Describe alternatives you've considered

/

DavidRouyer avatar Dec 19 '24 14:12 DavidRouyer

Can you determine this state by listening to the error event ?

rikschennink avatar Dec 23 '24 07:12 rikschennink

The error event is triggered when a specific file is in error, but the processfiles is not triggered anymore, so I can't react to existing successfully processed files

DavidRouyer avatar Jan 13 '25 10:01 DavidRouyer

Found a workaround by listening to processfile and error, and I check if at least 1 file is correctly processed

DavidRouyer avatar Jan 13 '25 10:01 DavidRouyer