good point, I added a commit to ignore case, but for file types that have more than one ext (jpg/jpeg) I'm not sure of the best way to handle it. I don't think it should be our job to look out for cases like that though?

I mean we could store a list of common media file types and which ones are interchangable with each other.