PHP Interface Sulu\Bundle\MediaBundle\Media\FileValidator\FileValidatorInterface

The FileValidator is a interface to validate uploaded files.
Show file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
validate ( Symfony\Component\HttpFoundation\File\UploadedFile $file, array $methods = [] ) : mixed Validated a given file.

Method Details

validate() public method

Validated a given file.
public validate ( Symfony\Component\HttpFoundation\File\UploadedFile $file, array $methods = [] ) : mixed
$file Symfony\Component\HttpFoundation\File\UploadedFile
$methods array
return mixed