Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Метод | Описание | |
---|---|---|
__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 | |
Результат | boolean |
public getAllowedUploadExtensions ( ) : array | ||
Результат | array |
public getMaxUploadSize ( ) : double | ||
Результат | double |
public getMaxUploadSizeNice ( ) : string | ||
Результат | string |
protected $allowedPrefixes |
protected $blocked |