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.
This method uploads all files that are currently in the queue to the specified server.
var uploadTransport = new oj.FileUploadTransport(); uploadTransport.queue(fileList); uploadTransport.flush();
This method queues up files for upload. It returns an array of
ProgressItemobjects. Each file corresponds to a
ProgressItemobject. These items can be uploaded by calling the flush method.
Name Type Description
FileList A list contains the File objects to be queued.
Returns:an array of
var uploadTransport = new oj.FileUploadTransport(); uploadTransport.queue(fileList);