Home Reference Source
import {FileUpload} from '@quobis/sippojs'
public class | source

FileUpload

Provides access to methods for uploading a file. A file transfer object is obtained by calling the FileSharingManager#createFileTransfer method.

Events

  • status status : FileTransferStatus, error? : Error - Emitted every time the status of the file transfer changes.
  • progress value : number - Emitted every time the progress changes

Method Summary

Public Methods
public
public
public
public
public
public
public
public
public

Public Methods

public getBytesSent(): number source

Return:

number

public getId(): string source

Return:

string

public getName(): string source

Return:

string

public getProgress(): number source

Return:

number

File transfer progress.

public getSize(): number source

Return:

number

public getStatus(): FileUploadStatus source

public getType(): string source

Return:

string

public getUrl(): string source

Return:

string

public hasStatus(statuses: FileUploadStatus): boolean source

Params:

NameTypeAttributeDescription
statuses FileUploadStatus

Return:

boolean