you should not use file extension to find the type of file.
Xyhlon opened this issue · comments
I have PNG file which are not recognized because the ending is capitalized. You should use the magic number of different file types to distinguish them. See https://gist.github.com/leommoore/f9e57ba2aa4bf197ebc5