Validator::validateMimes returns false if the uploaded file isn't valid

If the upload is partial, the UploadedFile instance might be invalid and the mimetype shouldn't be validated.