$download » History » Version 1
Per Amundsen, 02/25/2016 12:12 PM
1 | 1 | Per Amundsen | _Added in 2.3_ |
---|---|---|---|
2 | |||
3 | *$download* |
||
4 | |||
5 | Returns the download name during a [[on DOWNLOAD]] event. |
||
6 | |||
7 | *$download(name,[N])* |
||
8 | |||
9 | Returns information about a the Nth download. |
||
10 | |||
11 | *Parameters* |
||
12 | |||
13 | name - Name to lookup, can be a wildcard. |
||
14 | [N} - If N = 0, number of matches, otherwise the Nth match. (optionally) |
||
15 | |||
16 | *Properties* |
||
17 | |||
18 | .name - Name of the download. |
||
19 | .file - Filename to save as. |
||
20 | .url - The url to download. |
||
21 | |||
22 | *Example* |
||
23 | <pre> |
||
24 | ; Print number of downloads. |
||
25 | //echo -ag $download(*, 0) |
||
26 | |||
27 | ; Print the first download. |
||
28 | //echo -ag $download(*, 1) |
||
29 | </pre> |