Documentation

DefaultUploadCallback
in package
implements UploadCallbackInterface

Table of Contents

Interfaces

UploadCallbackInterface

Properties

$cx  : Cx

Methods

__construct()  : mixed
uploadFinished()  : mixed

Properties

Methods

uploadFinished()

public uploadFinished( $tempPath,  $tempWebPath,  $data,  $uploadId,  $fileInfos, mixed $response) : mixed
Parameters
$tempPath :

String Path to the temporary directory containing the files at this moment.

$tempWebPath :

String Points to the same folder as tempPath, but relative to the webroot.

$data :

String Data given to setData() when creating the uploader.

$uploadId :

integer Per-session unique id for the current upload.

$fileInfos :

array('originalFileNames' => array( 'theCurrentAndCleanedFilename.txt' => 'raw!Source#Filename.txt' ) )

$response : mixed
Return values
mixed

The return value can be an array as shown in the example or null. When returning an array, all files left in the temporary directory are moved accordingly. When returning null, all left files are deleted.


        
On this page

Search results