dfa1234 / ngx-image-compress

Angular library for uploading and compressing images
https://image-library.app
MIT License
86 stars 37 forks source link

uploadFileOrReject not rejecting on Chrome on Android #94

Closed chaoranxie closed 1 year ago

chaoranxie commented 2 years ago

I tested out the this.imageCompress.uploadFileOrReject() on desktop, and when I dont select a file, the rejection is handled properly in catch block but when I tried the same thing in Chrome on android, the catch block is not executed at all.

chaoranxie commented 2 years ago

Tested out here https://stackblitz.com/edit/ngx-image-compress-taje9t?file=src%2Fapp%2Fapp.component.ts%3AL64

dfa1234 commented 1 year ago

@chaoranxie Like said in the read me, for test on mobile, use this url: https://image-library.app/

Stackblitz is just good to visualize the code but running the code have a lot of performance issue