Method |
Description |
|
__construct ( ) |
Class constructor. |
|
allowFileExtension ( $Extension ) |
Adds an extension (or array of extensions) to the array of allowed file extensions. |
|
canUpload ( null $UploadPath = null ) : boolean |
|
|
clear ( ) |
|
|
copyLocal ( string $Name ) : string |
Copy an upload locally so that it can be operated on. |
|
delete ( string $Name ) : boolean |
Delete an uploaded file. |
|
formatFileSize ( integer $Bytes, integer $Precision = 1 ) : string |
Format a number of bytes with the largest unit. |
|
generateTargetName ( $TargetFolder, string $Extension = 'jpg', boolean $Chunk = false ) : string |
|
|
getUploadedFileExtension ( ) : mixed |
|
|
getUploadedFileName ( ) : mixed |
|
|
isUpload ( $inputName ) : boolean |
Check to see whether the user has selected a file for uploading. |
|
isUploadUri ( string $uri ) : boolean |
Determine if a URI matches the format of a valid type/domain upload. |
|
parse ( string $Name ) : array | boolean |
Parse a virtual filename that had previously been saved to the database. |
|
saveAs ( $Source, $Target, array $Options = [] ) : array | boolean |
|
|
unformatFileSize ( string $Formatted ) : integer |
Take a string formatted filesize and return the number of bytes. |
|
url ( $Name ) : mixed |
|
|
urls ( string $Type = null ) : string |
Returns the url prefix for a given type. |
|
validateUpload ( $InputName, $ThrowException = true ) |
Validates the uploaded file. Returns the temporary name of the uploaded file. |
|