file upload/get: add mimetype