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
ProgressItem
objects. Each file corresponds to aProgressItem
object. These items can be uploaded by calling the flush method.Parameters:
Name Type Description fileList
FileList A list contains the File objects to be queued. Returns:
an array of
ProgressItem
objects.- Type
- Array.<oj.ProgressItem>