kartik-v / bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x/4.x./3.x with file preview, multiple selection, and more features.
http://plugins.krajee.com/file-input
Other
5.36k stars 2.39k forks source link

Upload of small TIF file throws Unhandled Promise Rejection: Error: End-Of-Stream #1855

Closed gb5256 closed 8 months ago

gb5256 commented 9 months ago

When I try to upload this file (I have zipped it, as TIF are not allowed here): image_sample.tiff.zip

Then I get the spinning wheel and a JS error for filetype.js:152 Unhandled Promise Rejection: Error: End-Of-Stream

The line 152 with the reported error is this:

class EndOfStreamError extends Error { constructor() { super(KrajeeFileTypeConfig.defaultMessages); } }

kartik-v commented 8 months ago

Related to #1822 and fixed via the same.