downloadFile

fun downloadFile(content: Blob, fileName: String)(source)

Downloads the given content as a file. By default, the file is directly downloaded to the default download directory of the browser. If you want to select the download location via a file selector, then you have to configure that behaviour in your browser settings.

Parameters

content
  • The file content.

fileName
  • The proposed filename.