browser-image-compression
browser-image-compression copied to clipboard
Try imageCompression() catches a ProgressEvent instead of an error
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.
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.