Property | Type | Description | |
---|---|---|---|
$allowed | Regex list represented editable resources. | ||
$allowedPrefixes | List of Filesystem prefixes that are editable. | ||
$blocked | Regex list represented resources forbidden for edition. | ||
$config | |||
$maxUploadSize | Maximum upload size allowed by PHP, in bytes. |
Method | Description | |
---|---|---|
__construct ( |
Constructor, initialize filters rules. | |
allowedUpload ( string $originalFilename ) : boolean | Checks if a given file is acceptable for upload. | |
authorized ( string $prefix, string $path ) : boolean | Check if you can do something with the given file or directory. | |
getAllowedUploadExtensions ( ) : array | Get the array of configured acceptable file extensions. | |
getMaxUploadSize ( ) : double | Get the maximum upload size the server is configured to accept. | |
getMaxUploadSizeNice ( ) : string | Get the max upload value in a formatted string. |
public __construct ( |
||
$config |
public allowedUpload ( string $originalFilename ) : boolean | ||
$originalFilename | string | |
return | boolean |
public getAllowedUploadExtensions ( ) : array | ||
return | array |
public getMaxUploadSize ( ) : double | ||
return | double |
public getMaxUploadSizeNice ( ) : string | ||
return | string |
protected $allowedPrefixes |
protected $blocked |