browser-image-compression icon indicating copy to clipboard operation
browser-image-compression copied to clipboard

Try imageCompression() catches a ProgressEvent instead of an error

Open quique0194 opened this issue 2 years ago • 1 comments

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.

quique0194 avatar Oct 10 '23 20:10 quique0194

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

hambro avatar Jun 17 '24 10:06 hambro