You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am aware that the file-type README says that it doesn't support SVG files. Based on this, I would expect that any SVG file input to fileTypeFromBuffer would return undefined. But I am seeing some inconsistent behavior for different SVG file inputs.
For example, the output for this SVG file is undefined as expected. However for this SVG file, fileTypeFromBuffer returns { ext: "xml", mime: "application/xml" }
Could you please let me know why there is such discrepancy in the outputs?
The text was updated successfully, but these errors were encountered:
I am aware that the
file-type
README says that it doesn't support SVG files. Based on this, I would expect that any SVG file input tofileTypeFromBuffer
would returnundefined
. But I am seeing some inconsistent behavior for different SVG file inputs.For example, the output for this SVG file is
undefined
as expected. However for this SVG file,fileTypeFromBuffer
returns{ ext: "xml", mime: "application/xml" }
Could you please let me know why there is such discrepancy in the outputs?
The text was updated successfully, but these errors were encountered: