Skip to content

There is no onError props or a way to check if the upload didn't work #361

@jonnigs

Description

@jonnigs

Brief description of the feature and motivation behind it

I'm using a custom button that opens up the Uploadcare widget. Once the file is selected, the widget is closed and a loading state is displayed (and form submission is disabled) until the onChange function fires and the selected file name is displayed in the button. Now it has happened two days in a row that the file upload does not succeed and the onChange function does not fire, leaving me with a hanging loading state.

Can the onChange function fire with error props? Or is it possible to add onError props to the widget so that I can react accordingly and display that an error occured?

Some way to check if the upload does not succeed. This could be a new props or addition to the onChange.

I think error handling is important.
Some users don't want to use the widget button that comes with the package.

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