Documentation

UploadCallbackInterface

Table of Contents

Methods

__construct()  : mixed
uploadFinished()  : mixed

Methods

uploadFinished()

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

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

$tempWebPath : mixed

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

$data : mixed

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

$uploadId : mixed

integer Per-session unique id for the current upload.

$fileInfos : mixed

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