Conexia Telecom SDK
    Preparing search index...

    Interface FileSharing

    interface FileSharing {
        cancelAllPendingTransfers(): any;
        download(
            file: FssFile,
            updateProgressHandler?: (progress: number, fileId: string) => void,
        ): Promise<Blob>;
        downloadThumbnail(file: FssFile): Promise<string>;
        upload(
            file: File,
            fileId: string,
            updateProgressHandler?: (progress: number) => void,
        ): Promise<FssFile>;
    }
    Index
    • Cancel all transfers to file sharing service.

      Returns any

    • Download file from file sharing service.

      Parameters

      • file: FssFile

        file to download.

      • OptionalupdateProgressHandler: (progress: number, fileId: string) => void

        callback for progress info.

      Returns Promise<Blob>

    • Dowload thumbnail for file from file sharing service.

      Parameters

      • file: FssFile

        file to download thumbnail for.

      Returns Promise<string>

    • Upload file to file sharing service.

      Parameters

      • file: File

        file to upload.

      • fileId: string

        file id.

      • OptionalupdateProgressHandler: (progress: number) => void

        callback for progress info.

      Returns Promise<FssFile>