Function uploadFile

  • Prompt the user to select a file or directory in the browser.

    Parameters

    • multiple: boolean = false

      allow multiple files

    • directory: boolean = false

      allow directory

    • Optional accept: string

      file types to accept (default: all), e.g. 'image/*'

    Returns Promise<File[]>

Generated using TypeDoc