WLJS LogoWLJS Notebook

URLSaveAsynchronous

URLSaveAsynchronous["url", "file", func] performs a download to "file" in the background, calling func when an event is raised.

Examples

URLSaveAsynchronous["https://example.com/file.zip", "local.zip", 
  Print[#] &]
URLSaveAsynchronous[url, file, 
  Function[{status, data}, If[status === "done", Print["Complete"]]]]
task = URLSaveAsynchronous["https://example.com/data.csv", "data.csv", callback]

*See the official Wolfram Language Reference for more details.

On this page