Function fileCollectionFromFiles

  • Generate a FileCollection from an array of File File is the native API from the browser. However some libraries like react-drop-zone create a property 'path' rather than 'webkitRelativePath'. By default this method will expand all zip and gzip files

    Parameters

    • files: File[]

      Array of File that could contain 'path' to define the relative path

    • options: Options = {}

    Returns Promise<FileCollection>