record mime type of uploaded files