File Upload Transport Interface
This interface defines the API to communicate/send data to the server asynchronously. It is
designed to reflect the needs of the Jet File Upload UI as opposed to being some general
File Upload API. Application must implement the FileUploadTransport interface to use the JET
File Upload Component. The implementation of this interface should handle the details of features
supported by the server such as multipart upload, chunking, concurrent upload, queuing files,
abort pause/resume etc.
See oj.ProgressItem
Methods
-
flush() : {void}
-
This method uploads all files that are currently in the queue to the specified server.
Returns:
- Type
- void
-
queue(fileList) : {Array.<oj.ProgressItem>}
-
This method queues up files for upload. It returns an array of
ProgressItemobjects. Each file corresponds to aProgressItemobject. These items can be uploaded by calling the flush method.Parameters:
Name Type Description fileListFileList A list contains the File objects to be queued. Returns:
an array ofProgressItemobjects.- Type
- Array.<oj.ProgressItem>