Donaldcwl / browser-image-compression

Image compression in web browser
MIT License
1.29k stars 160 forks source link

Try imageCompression() catches a ProgressEvent instead of an error #211

Open quique0194 opened 1 year ago

quique0194 commented 1 year ago

Here our sentry error report:

https://apurata.sentry.io/share/issue/a6c8327fb98f45f79da12a264276aec2/

At least it'd be nice to understand why is happening this in order to handle it properly.

hambro commented 4 months ago

It just catches whatever error your browser throws. Look at error.target.error if you can and have a look at what the actual error is. In my case, we had a webview problem where the file was just discarded immediately. See screenshot for example. image