FileUpload Class Reference

Inheritance diagram for FileUpload:
ZurmoWidget LogoFileUpload

Public Member Functions

 init ()
 run ()

Data Fields

const DOWNLOAD_TEMPLATE_ID = 'template-download'
const UPLOAD_TEMPLATE_ID = 'template-upload'
 $scriptFile
 $cssFile = null
 $assetFolderName = 'fileUpload'
 $uploadUrl
 $deleteUrl
 $allowMultipleUpload = false
 $options
 $formName
 $inputName
 $inputId
 $hiddenInputName
 $existingFiles
 $maxSize
 $beforeUploadAction
 $afterDeleteAction
 $showMaxSize = true

Protected Member Functions

 makeDownloadRowScriptContent ()
 makeUploadRowScriptContent ()

Static Protected Member Functions

static renderMaxSizeContent ($maxSize, $showMaxSize)

Detailed Description

Render a file upload element that can allow for multiple file uploads and calls ajax to upload the files to the server as you add them. Utilizes file upload plugin here: https://github.com/blueimp/jQuery-File-Upload

Definition at line 42 of file FileUpload.php.


Member Function Documentation

init (  ) 

Initializes the widget. This method will publish JUI assets if necessary. It will also register jquery and JUI JavaScript files and the theme CSS file. If you override this method, make sure you call the parent implementation first.

Reimplemented from ZurmoWidget.

Definition at line 140 of file FileUpload.php.


Field Documentation

$scriptFile
Initial value:
 array('jquery.fileupload.js',
                                   'jquery.fileupload-ui.js', 'jquery.tmpl.min.js', 'jquery.iframe-transport.js')

Reimplemented from ZurmoWidget.

Definition at line 48 of file FileUpload.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Dec 13 07:10:24 2017