interface UploadFileInput {
    file: File;
    onProgressUpdate?: ((progress, abortMethod) => void);
    url: string;
}

Properties

file: File

The file to upload

onProgressUpdate?: ((progress, abortMethod) => void)

Type declaration

    • (progress, abortMethod): void
    • Progress callback

      Parameters

      • progress: {
            loaded: number;
            total: number;
        }
        • loaded: number
        • total: number
      • abortMethod: (() => void)
          • (): void
          • Returns void

      Returns void

url: string

The url to upload the file to

Generated using TypeDoc