Project

General

Profile

Actions

Added in 2.3

$download

Returns the download name during a on DOWNLOAD event.

See also $downloaderr, /download, on DOWNLOAD.


$download(name,[N])

Returns information about a the Nth download.

Parameters

Parameter Description
name Name to lookup, can be a wildcard.
[N} If N = 0, number of matches, otherwise the Nth match. (optionally)

Properties

Property Description
.name Name of the download.
.file Filename to save as.
.url The url to download.

Example

; Print number of downloads.
//echo -ag $download(*, 0)

; Print the first download.
//echo -ag $download(*, 1)

Updated by Per Amundsen over 1 year ago · 2 revisions

Also available in: PDF HTML TXT