Skip to content

Add onBeforeFileAdded callback? #416

@whafrog

Description

@whafrog

I would think this would be generally useful, but for my specific case:

I need to be able to put input controls into a grid, so that a user can upload single files tied to specific types (model data) behind the scenes. If the user selects a file, changes their mind, and selects a second file, both files are added to the queue. I need to be able to update the queue to remove any previous selections associated with that model data.

I can do this with a filter, but it doesn't seem the right role for a filter.
I can do this using onAfterAddingFile, but the logic is more convoluted since I need to count items associated with model data, and make assumptions about queue order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions