Class ZmUploadManager
This class represents the file uploading, with document creation
Defined in: ZmUploadManager.js.
Class Summary
Constructor Attributes |
Constructor Name and Description |
|
Creates the ZmUploadManager
|
Method Summary
Method Attributes |
Method Name and Description |
|
Returns a string representation of the object.
|
|
uploadMyComputerFile serializes a set of files uploads.
|
Class Detail
ZmUploadManager()
Creates the ZmUploadManager
Method Detail
{String}
toString()
Returns a string representation of the object.
- Returns:
- {String} a string representation of the object
upload(params)
uploadMyComputerFile serializes a set of files uploads. The responses are accumulated, and progress is provided to the
current view, if any. Once all files are uploaded, a custom callback is run (if provided) to finish the upload.
- Parameters:
-
{object} params
- params to customize the upload flow:
attachment True => Mail msg attachment, False => File Upload
uploadFolder Folder to save associated document into
files: raw File object from the external HTML5 drag and drop
notes: Notes associated with each of the files being added
allResponses: Placeholder, initialized here and passed to the chained calls, accumulating responses
start: current index into files
curView: target view for the drag and drop
url url to use (optional, currently only from ZmImportExportController)
stateChangeCallback callback to use from _handleUploadResponse which is the onreadystatechange listener, instead of the normal code here. (optiona, see ZmImportExportController)
preAllCallback: Run prior to All uploads
initOneUploadCallback: Run prior to a single upload
progressCallback: Run by the upload code to provide upload progress
errorCallback: Run upon an error
completeOneCallback: Run when a single upload completes
completeAllCallback: Run when the last file has completed its upload
|