Demos

resumable: Set an icon and URL to allow user to later resume download

The resumeURL property is used to allow the user to later resume a paused download after closing the download window. When the download starts, an icon specifying a target resume URL is created on the user's desktop. The user can double-click the link to resume the download.

The code shown below was run when this page loaded. The dlmContainer and startDLM HTML elements are already defined in this page.

Click the Start Download link to begin. If you haven't installed the NetSession client, you'll be prompted to agree to the end user license agreement (EULA) while installing the client.

Code

    DLMHelper.uploadEnabled = true;
    
    var url = "http://client.akamai.com/install/test-objects/50MB.bin";
    var dlm = new DLM(DLMCID, url, null, "dlmContainer", "startDLM");
    dlm.downloadPath = "prompt";
    dlm.originOnly = false;
    dlm.resumeURL = "http://client.akamai.com/misc/demos/resumable.html?resume=true";
    
    if (window.location.href.indexOf("?resume=true") != -1)
    {
      // If resumption icon and link are used, immediately begin download.
      dlm.beginDownload();
    }
              

Client-side Downloads demonstrations