TwistPHP Documentation


File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

uploadHandle 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 Type Description
[$strUID = null]stringn/a

Return Values

void — No return information has been documented for this function.


//Set the variables for the example
$strFileKey 'foo';
$strUID null;

//Call the function upload with the example vars
Twist::File() -> upload($strFileKey$strUID);