Skip to main content

Interface: FileSharing

Defined in: sdk/.repo/sdk/src/interfaces/fss/FileSharing.ts:3

Methods

cancelAllPendingTransfers()

cancelAllPendingTransfers(): any

Defined in: sdk/.repo/sdk/src/interfaces/fss/FileSharing.ts:31

Cancel all transfers to file sharing service.

Returns

any


download()

download(file, updateProgressHandler?): Promise<Blob>

Defined in: sdk/.repo/sdk/src/interfaces/fss/FileSharing.ts:10

Download file from file sharing service.

Parameters

file

FssFile

file to download.

updateProgressHandler?

(progress, fileId) => void

callback for progress info.

Returns

Promise<Blob>


downloadThumbnail()

downloadThumbnail(file): Promise<string>

Defined in: sdk/.repo/sdk/src/interfaces/fss/FileSharing.ts:26

Dowload thumbnail for file from file sharing service.

Parameters

file

FssFile

file to download thumbnail for.

Returns

Promise<string>


upload()

upload(file, fileId, updateProgressHandler?): Promise<FssFile>

Defined in: sdk/.repo/sdk/src/interfaces/fss/FileSharing.ts:19

Upload file to file sharing service.

Parameters

file

File

file to upload.

fileId

string

file id.

updateProgressHandler?

(progress) => void

callback for progress info.

Returns

Promise<FssFile>