web.download
Downloads a file to the MODLR Filesystem. This can be accessed via processes using the MODLR Filesystem or through the MODLR FTP Server.
js
web.download(url, filename)
web.download(url, filename)
Parameters
url
(string): The URL of the file to download.filename
(string): The filename to save the downloaded file as
Returns
success
(boolean): Wether or not the download is successful.
Examples
js
var success = web.download("https://api.example.com/some_file.zip", "some_file.zip");
var success = web.download("https://api.example.com/some_file.zip", "some_file.zip");