Selva Compute API Reference - v1.1.2
    Preparing search index...

    Function downloadFileData

    • Downloads files from a compute response as a ZIP archive. Packages multiple files into a single ZIP file and triggers a browser download.

      Parameters

      • downloadableFiles: FileData[]

        An array of FileData items from the compute response.

      • fileFoldername: string

        The name of the ZIP file (without extension).

      • additionalFiles: FileBaseInfo | FileBaseInfo[] | null = null

        Optional additional files to include in the ZIP (fetched from URLs).

      Returns Promise<void>

      Will throw an error if the file handling or download fails.

      await downloadDataFromComputeResponse(fileData, null, 'my-export');
      // Downloads 'my-export.zip'