Home Reference Source Repository
public class | source

FileTask

Extends:

src/core.js~API → FileTask

Direct Subclass:

DownloadTask, UploadTask

Provides the base implementation for file-based tasks.

Static Method Summary

Static Public Methods
public static

Returns the file type corresponding to the specified file URI.

Constructor Summary

Public Constructor
public

constructor(options: object)

Initializes a new instance of the class.

Member Summary

Public Members
public

A value that uniquely identifies the file.

Static Public Methods

public static getFileTypeFromURI(fileURI: string): string source

Returns the file type corresponding to the specified file URI.

Params:

NameTypeAttributeDescription
fileURI string

The file URI.

Return:

string

The file type corresponding to the specified file URI, or an empty string if the type is unknown.

Public Constructors

public constructor(options: object) source

Initializes a new instance of the class.

Params:

NameTypeAttributeDescription
options object
  • optional

An object specifying values used to initialize this instance.

Public Members

public fileURI: string source

A value that uniquely identifies the file.