Closed chaoranxie closed 1 year 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.
this.imageCompress.uploadFileOrReject()
catch
Tested out here https://stackblitz.com/edit/ngx-image-compress-taje9t?file=src%2Fapp%2Fapp.component.ts%3AL64
@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
I tested out the
this.imageCompress.uploadFileOrReject()
on desktop, and when I dont select a file, the rejection is handled properly incatch
block but when I tried the same thing in Chrome on android, thecatch
block is not executed at all.