Mime type not supported error. The mime type I'm uploading with is image/jpeg and I'm quite sure that the file is actually a jpeg (it starts with 0xFF 0xD8 as per https://en.wikipedia.org/wiki/JPEG_File_Interchange_Format) - Any ideas on how I can diagnose this?