Is the given file valid?
FileValidator modules should not implement this method, as it only serves as a front-end to isValid() for logging purposes.
Usage
$bool = $fileValidatorModule->isValid(string $filename);
Arguments
Name | Type(s) | Description |
---|---|---|
filename | string |
Return value
bool
int
Returns TRUE if valid, FALSE if not, or integer 1 if valid as a result of sanitization.
FileValidatorModule methods and properties
API reference based on ProcessWire core version 3.0.236