Caplin Trader 5.1.0

Class: module:ct-dom/FileDownloader

module:ct-dom/FileDownloader()

new module:ct-dom/FileDownloader()

The FileDownloader allows you to download files from a given URL.

Methods

downloadFile(url, fields)

Downloads a file from the given URL. If there is an error trying to download the file an alert is shown.

Parameters:
Name Type Description
url String

The URL to download the file from.

fields Map

Any additional parameters that should be appended to the download URL.