Ensuring specified mime-type takes precedence over file extensions for createFile.