Open skourismanolis opened 3 years ago
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 responseType
, which at first glance will require some deeper refactoring of the current structure.
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.