DownloadFile

Make a link in HTML to download the file.

function DownloadFile(
    filename,
    mime 
)

Parameters:

  • fileName file name
  • mime string “mime/type”

Doesn’t work in Web Worker.