Removed reference to UploadedFile->hasErrors()