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
fetching files renders invalid blob #145
Comments
Same :/ |
Any workarounds or attempts to fix this? The issue is obviously here: https://github.com/developit/unfetch/blob/master/src/index.mjs#L16 To fix this, the XHR would probably need to be initialized with the proper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How it should be
How it is with unfetch
Note how the blob's size is different and the type is missing.
That can also be confirmed by using
FileReader.readAsDataURL()
on the generated blob, the resulting file is invalid and cannot be opened.The text was updated successfully, but these errors were encountered: