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.