PHP Interface Sulu\Bundle\MediaBundle\Media\FileValidator\FileValidatorInterface
The FileValidator is a interface to validate uploaded files.
显示文件
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
public validate ( Symfony\Component\HttpFoundation\File\UploadedFile $file, array $methods = [] ) : mixed |
$file |
Symfony\Component\HttpFoundation\File\UploadedFile |
|
$methods |
array |
|
return |
mixed |
|