Set mimetipes of the uploaded files