Project

General

Profile

$download » History » Version 2

Per Amundsen, 02/16/2023 09:35 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 2 Per Amundsen
_See also [[$downloaderr]], [[/download]], [[on DOWNLOAD]]._
8
9
----------------------------------------
10
11 1 Per Amundsen
*$download(name,[N])*
12
13
Returns information about a the Nth download.
14
15
*Parameters*
16
17 2 Per Amundsen
table(ktable).
18
|*Parameter*|*Description*|
19
| name | Name to lookup, can be a wildcard. |
20
| [N} | If N = 0, number of matches, otherwise the Nth match. (optionally) |
21 1 Per Amundsen
22
*Properties*
23
24 2 Per Amundsen
table(ktable).
25
|*Property*|*Description*|
26
| .name | Name of the download. |
27
| .file | Filename to save as. |
28
| .url | The url to download. |
29 1 Per Amundsen
30
*Example*
31
<pre>
32
; Print number of downloads.
33
//echo -ag $download(*, 0)
34
35
; Print the first download.
36
//echo -ag $download(*, 1)
37
</pre>