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

[Feature] React to processed files but ignore errors #1029

Open
1 task done
DavidRouyer opened this issue Dec 19, 2024 · 1 comment
Open
1 task done

[Feature] React to processed files but ignore errors #1029

DavidRouyer opened this issue Dec 19, 2024 · 1 comment

Comments

@DavidRouyer
Copy link
Contributor

Is there an existing issue for this?

  • 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:

// All items processed? No errors?
const allItemsProcessed =
query('GET_ITEMS_BY_STATUS', ItemStatus.PROCESSING_COMPLETE).length ===
state.items.length;
if (allItemsProcessed) {
dispatch('DID_COMPLETE_ITEM_PROCESSING_ALL');
}

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

/

@rikschennink
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants