Property | Type | Description | |
---|---|---|---|
$blockedMimeTypes | array | ||
$maxFileSize | integer |
Method | Description | |
---|---|---|
getBlockedMimeTypes ( ) : array | ||
getMaxFileSize ( ) : integer | ||
setBlockedMimeTypes ( array $blockedMimeTypes ) | ||
setMaxFileSize ( string $maxFileSize ) | ||
validate ( Symfony\Component\HttpFoundation\File\UploadedFile $file, array $methods = [self::VALIDATOR_FILE_SET, self::VALIDATOR_FILE_ERRORS, self::VALIDATOR_BLOCK_FILE_TYPES, self::VALIDATOR_MAX_FILE_SIZE] ) : mixed | void |
public setBlockedMimeTypes ( array $blockedMimeTypes ) | ||
$blockedMimeTypes | array |
public validate ( Symfony\Component\HttpFoundation\File\UploadedFile $file, array $methods = [self::VALIDATOR_FILE_SET, self::VALIDATOR_FILE_ERRORS, self::VALIDATOR_BLOCK_FILE_TYPES, self::VALIDATOR_MAX_FILE_SIZE] ) : mixed | void | ||
$file | Symfony\Component\HttpFoundation\File\UploadedFile | |
$methods | array | |
return | mixed | void |