Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IUploadHooks

Callback hooks during the upload process

Hierarchy

  • IUploadHooks

Index

Methods

  • onProgress(progress: number): void
  • File upload progress callback

    Parameters

    • progress: number

    Returns void

  • onComplete(fileInfo: { url: string }): void | BaseMessage<any>
  • File upload completion callback. You can modify the return value to alter the message content to be published, such as implementing custom messages.

    Parameters

    • fileInfo: { url: string }
      • url: string

    Returns void | BaseMessage<any>