http.download Deprecated
INFO
Replaced by web.download
This function downloads a resource and stores it as the provided file name in the MODLR Filesystem. This can be accessed via processes using the MODLR Filesystem or through the MODLR FTP Server.
js
http.download(url, method, postData, saveAsFilename)
Parameters
url
- the URL of the resource to download.method
- the method of the requestGET
orPOST
.postData
- the post data to send to the server.saveAsFilename
- the name and subfolder to store this file as.
Example
js
let success = http.download("https://go.modlr.co/images/logo.png", "GET", "", "logo.png");