TwistPHP Documentation

_upload

File path: dist/twist/Core/Controllers/Base.controller.php
Namespace: Twist\Core\Controllers
Extends:

_uploadProcess files that have been uploaded and return an array of uploaded data, this is to help when a browser does not support teh pure AJAX uploader.

Parameters

Name Type Description
$strFileKeystringn/a
[$strType = 'file']stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strFileKey 'foo';
$strType 'file';

//Call the function _upload with the example vars
$resBase = new \Twist\Core\Controllers\Base();
$resBase -> _upload($strFileKey$strType);