Interface: FileUploadTransport

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

QuickNav


PREVIEW: This is a preview API. Preview APIs are production quality, but can be changed on a major version without a deprecation path.

FileUploadTransport

Version:
  • 7.1.0
Since:
  • 4.0.0
Module:
  • ojfilepicker

Module usage

See JET Module Loading for an overview of module usage within JET.

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

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

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>