Mimetype detection sometimes fails on small files
This shouldn't ever fail - I usually get it when I upload a really small image
I could figure out why the magic detection doesn't work, or I could just fall-back to ext -> mimetype for them.
I'm not too sure.