The error message should occur on the browser's view. An image should not be uploaded.
Current Behavior
The error message occurs on the browser's dev tools. An image is uploaded.
Possible Solution
It would be better to cancel uploading corrupted images. In such case, onFileUploadFailed callback could be triggered.
Or there should be some additional way to catch such errors.
An issue with ignoring corrupted files causes another problem in further steps when we try to read that file. When you update image via filestack's filepicker without any change and re-upload it, everything works fine.
Your Environment
Version used: ^3.25.0
Browser Name and version: Version 110.0.5481.100 (Official Build) (64-bit)
Operating System and version (desktop or mobile): Ubuntu 20.04 LTS
Expected Behavior
The error message should occur on the browser's view. An image should not be uploaded.
Current Behavior
The error message occurs on the browser's dev tools. An image is uploaded.
Possible Solution
It would be better to cancel uploading corrupted images. In such case,
onFileUploadFailed
callback could be triggered. Or there should be some additional way to catch such errors.Steps to Reproduce
Additional Screenshots
Context
An issue with ignoring corrupted files causes another problem in further steps when we try to read that file. When you update image via filestack's filepicker without any change and re-upload it, everything works fine.
Your Environment
^3.25.0