filepond
filepond copied to clipboard
[Feature] React to processed files but ignore errors
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
processfileserrortriggered when all files are processed and ignoring files in error
Describe alternatives you've considered
/
Can you determine this state by listening to the error event ?
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
Found a workaround by listening to processfile and error, and I check if at least 1 file is correctly processed