The _getFileType already process decodestring() with the data.
Attach a file by drag & drop or click to upload