Adding default MimeType guessing for uploadDir.