프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |