Skip to content

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

Open
@DavidRouyer

Description

@DavidRouyer

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

/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions