Interface: FileUploadTransport

Oracle® JavaScript Extension Toolkit (JET)
15.1.0

F83698-01

Since:
  • 4.0.0
Module:
  • ojfilepicker

Note: This interface is deprecated since 9.0.0. <oj-progress-list> and ProgressItem have already been deprecated in 8.0.0, please use <oj-list-view> instead.

QuickNav

Description

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


Usage

Typescript Import Format
//To use this interface, import as below.
import {FileUploadTransport} from "ojs/ojfilepicker";

For additional information visit:


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 ProgressItem objects. Each file corresponds to a ProgressItem 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>