Guess the MIME type from the object name when uploading if required