All docs
V25.2
25.2
25.1
24.2
24.1
23.2
23.1
22.2
22.1
21.2
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2.
19.1
The page you are viewing does not exist in version 19.1.
18.2
The page you are viewing does not exist in version 18.2.
18.1
The page you are viewing does not exist in version 18.1.
17.2
The page you are viewing does not exist in version 17.2.

JavaScript/jQuery FileManager - Remote.Methods

This section describes members used to manage file system items.

abortFileUpload()

Cancels the file upload.

Parameters:
fileData:

File

The file that is being uploaded.

uploadInfo:

UploadInfo

Information about the file upload session.

destinationDirectory:

FileSystemItem

The directory where a file system item is uploaded to.

Return Value:

PromiseLike object (jQuery, native, etc)

A Promise that is resolved after the file upload is aborted.

copyItems()

Copies files or directories.

Parameters:

The current files or directories.

destinationDirectory:

FileSystemItem

The directory where files or directories are copied to.

Return Value:

Array<PromiseLike object (jQuery, native, etc)>

An array of Promise objects. A promise at N index gets resolved after a file or directory with the same index is copied.

createDirectory()

Creates a directory.

Parameters:
parentDirectory:

FileSystemItem

The parent directory where a new directory should be created.

name:

String

The name of the new directory.

Return Value:

PromiseLike object (jQuery, native, etc)

A Promise that is resolved after a new directory is created.

deleteItems()

Deletes files or directories.

Parameters:

The current files or directories.

Return Value:

Array<PromiseLike object (jQuery, native, etc)>

An array of Promise objects. A promise at N index gets resolved after a file or directory with the same index is deleted.

downloadItems()

Downloads files.

Parameters:

An array of files.

getItems()

Gets file system items.

Parameters:
parentDirectory:

FileSystemItem

The directory that stores file system items.

Return Value:

PromiseLike object (jQuery, native, etc)

A Promise that is resolved after file system items are obtained.

getItemsContent()

Gets items content.

Parameters:

The file system items.

Return Value:

PromiseLike object (jQuery, native, etc)

A Promise that is resolved after the content of the file system items is obtained.

moveItems()

Moves files and directories.

Parameters:

The current files and directories.

destinationDirectory:

FileSystemItem

The directory where files or directories are moved to.

Return Value:

Array<PromiseLike object (jQuery, native, etc)>

An array of Promise objects. A promise at N index gets resolved after a file or directory with the same index is moved.

renameItem()

Renames a file or directory.

Parameters:

The current file or directory.

newName:

String

The new name for the file or directory.

Return Value:

PromiseLike object (jQuery, native, etc)

A Promise that is resolved after the file or directory is renamed.

uploadFileChunk()

Uploads a file in chunks.

Parameters:
fileData:

File

The file that is being uploaded.

uploadInfo:

UploadInfo

Information about the file upload session.

destinationDirectory:

FileSystemItem

The directory where the file is uploaded to.

Return Value:

PromiseLike object (jQuery, native, etc)

A Promise that is resolved after the file uploaded.