new module:ct-dom /File Downloader()
The FileDownloader allows you to download files from a given URL.
Methods
download File(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. |