-
Notifications
You must be signed in to change notification settings - Fork 3
CupFile
A wrapper for the File API that allows the values to be used in bindings. Note that if the browser does not support the File API, the size
, type
, and percentComplete
properties will be zero/empty.
These objects are stored in the Cup queue controller, thus you can bind through the queue controller's arrangedObjects or selection to properties of this class.
This class exposes the following KVO compliant read-only properties:
The filename of the file.
The file's size in bytes.
The file's mime type.
One of the CupStatus constants below.
A BOOL set to YES when the file is uploading.
The number of bytes uploaded so far for this file.
The upload bitrate for this file.
An integer from 0-100 representing the percentage of the file that has been uploaded so far.
A BOOL that indicates whether the total size of the file is known. This affects what is reported in the progress callbacks.
The Javascript data object used by jQuery File Upload.
There are three constants returned by the status
property:
The file is in the queue but has not been submitted for uploading, or was submitted but was stopped or the upload failed.
The file is currently uploading.
The file successfully uploaded.