@umbraco-cms/backoffice

    Function blobDownload

    • Triggers a client-side download of a file, using a Blob object. To do this, a temporary anchor element is created, appended to the document body, immediate triggered to download, then removed from the document body.

      Parameters

      • data: any

        The data to be downloaded.

      • filename: string

        The name of the file to be downloaded.

      • mimeType: string

        The MIME type of the file to be downloaded.

      Returns void

      blobDownload(data, 'package.xml', 'text/xml');
      
    MMNEPVFCICPMFPCPTTAAATR