Usage
Typescript Import Format
//To use this interface, import as below.
import {FileUploadTransport} from "ojs/ojfilepicker";
For additional information visit:
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 of
ProgressItemobjects.- Type
- Array.<oj.ProgressItem>