Project

General

Profile

Added in 2.3

$download

Returns the download name during a on DOWNLOAD event.

$download(name,[N])

Returns information about a the Nth download.

Parameters

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

Properties

.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)

Also available in: PDF HTML TXT