File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
upload
— Handle uploaded files, call the function and pass in the html file input name. The file will then be uploaded to the system ready to be processed.
Optionally pass in a UID so that you can reference the temp file to further process the file, can be useful if uploading a file before the user has submitted the form.
Name | Description |
---|---|
$strFileKey | n/a |
[$strUID = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strFileKey = 'foo';
$strUID = null;
//Call the function upload with the example vars
Twist::File() -> upload($strFileKey, $strUID);