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

How to display errors when using Custom File Storage #414

Open
willianjusten opened this issue Jul 16, 2024 · 0 comments
Open

How to display errors when using Custom File Storage #414

willianjusten opened this issue Jul 16, 2024 · 0 comments

Comments

@willianjusten
Copy link

willianjusten commented Jul 16, 2024

Hey guys, I'm trying to upload my files to Cloudinary, which I managed to work using the documentation.

But I'm having some issues to display errors, the done function appears to only receive progress and url.
From the example provided you just throw an error (which is captured in the console), but not displayed anywhere.

I'd like to display the same errors when using the default uploader, like this:

image


Another detail, even though I disabled svgUpload, the input accept any type of image, which is not great for UX and I even need to check the type to upload or not...

image

It would be nice to have a way to pass to done the error like done({ error: 'bla' }) or at least capture the error itself to display on the input...

cc @brunolemos

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

1 participant