FileReader icon indicating copy to clipboard operation
FileReader copied to clipboard

Mime-type of files with 4 character extensions comes back as text/plain

Open cchiles opened this issue 11 years ago • 0 comments

The SWF action script uses substr(-3) to get a file extension in order to pull the mime-type from an array. Because of this, any extension that's not 3 characters gets a mime-type of text/plain. This causes problems with images that have a .jpeg extension because the base-64 encoding comes back wrong.

cchiles avatar Apr 22 '13 21:04 cchiles