Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"1 Unexpected EOF" error on uploading specific image #499

Open
yataras opened this issue Feb 23, 2023 · 0 comments
Open

"1 Unexpected EOF" error on uploading specific image #499

yataras opened this issue Feb 23, 2023 · 0 comments

Comments

@yataras
Copy link

yataras commented Feb 23, 2023

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

  1. Download the corrupted photo from here.
  2. Go to https://jsfiddle.net/q7supnwa/3, click Select Files to Upload and chose uploaded in the previous step picture, and click upload.
  3. Open console in devtools and there should be an error.

Additional Screenshots

  1. Error in devtools console
  2. Place in the code where the error is thrown.

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

  • 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
  • Link to your project: https://jsfiddle.net/q7supnwa/3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant