![]() |
Combu Server
3.1.1
PHP API Documentation
|
Public Member Functions | |
| __construct ($inputName, $rootPath=null, $createTempStruct=true) | |
| SetAllowedExtensions ($allowedExtensions) | |
| IsUploaded () | |
| GetTempname ($fileExt=".tmp") | |
| GetFilenameExtension ($filename) | |
| Upload () | |
| GetDestinationPath () | |
| GetDestinationUrl () | |
Management class for file uploads handle
Definition at line 8 of file FileUpload.php.
| __construct | ( | $inputName, | |
$rootPath = null, |
|||
$createTempStruct = true |
|||
| ) |
Constructor
| string | $inputName | Name of the INPUT form field |
| string | $rootPath | Path of the upload root folder |
| string | $createTempStruct | If TRUE then create a directory tree in the upload root (year-month-day) |
Definition at line 24 of file FileUpload.php.
| GetDestinationPath | ( | ) |
Get the destination folder path relative to the root folder
Definition at line 175 of file FileUpload.php.
| GetDestinationUrl | ( | ) |
Get the address URL of the destination folder relative to the root path
Definition at line 184 of file FileUpload.php.
| GetFilenameExtension | ( | $filename | ) |
Definition at line 76 of file FileUpload.php.
| GetTempname | ( | $fileExt = ".tmp" | ) |
Definition at line 71 of file FileUpload.php.
| IsUploaded | ( | ) |
Check if a file has been uploaded
Definition at line 60 of file FileUpload.php.
| SetAllowedExtensions | ( | $allowedExtensions | ) |
Set the allowed file extensions to upload
| string | $allowedExtensions | Array of allowed extensions (each extension should include prefix '.') |
Definition at line 42 of file FileUpload.php.
| Upload | ( | ) |
Do an upload action
Definition at line 89 of file FileUpload.php.
1.8.14