save mimetype with file