Closed whizkid77 closed 3 years ago
The bug:
fileType
application/xml
isSvg
The solution:
end
data
Sorry that no one ever took a look at this 😢
This was addressed in #103
The bug:
fileType
will sometimes preemptively detect svg files asapplication/xml
beforeisSvg
is called. We want it to be more specific.isSvg
requires inspecting the entire file contents, whilefileType
only requires the first chunk.The solution:
isSvg
is more specific, so move it above thefileType
call.end
event rather thandata
event for the file stream.