# Downloads Collection The Downloads collection contains all active and finished downloads. Members Table The following table lists the members provided by the Downloads collection.
Members
Properties | Description
ActiveDownloads | Number of currently running or paused downloads.
Count | The total number of downloads.
DownloadFolder | Name of the download folder.
DownloadLimit | Maximum download size.
Methods | Description
ClearDownloadDirectories | Deletes the files in all download directories.
CreateDownload | Creates a new download.
Item | Returns one item of the collection.
Remove | Terminates a download.
RemoveAll | Terminates all downloads.
RemoveByIdx | Terminates a download using its ID.
Events | Description
OnDownloadSuppressed | Fires when a download has been suppressed.
OnNewDownload | Fires when a new download has been started.
OnRemoveDownload | Fires when a download has been terminated.
Remarks This collection is available through the object Network. Use the Downloads collection to receive information about downloads, control active downloads or change settings regarding downloads. Note that the path of a file using SiteKiosk objects must be allowed in the SiteKiosk configuration (Security -> Access -> URL's With Script Permission) if it is not a browser skin file. Examples The following example shows the name of the file every time a new download started.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.Network.Downloads.OnNewDownload = OnNewDownload;
    function OnNewDownload(newdownload)
    {
       alert(newdownload.DownloadURL + " will be downloaded");
    }
    </SCRIPT>
Applies to SiteKiosk v5.5 (and later versions). Back to top