File

The file variable represents a downloadable file.

filename

Product filename, as uploaded to DPD.

filesize

File size, in bytes. Use the filesize filter to convert to a human-readable size.

Note

Only filename and filesize are available when not on a delivery page.

download_limit

Maximum number of downloads this file can receive before displaying an error message.

Note

If download_limit is 0, the file can be downloaded unlimited times until the expires_at time is reached.

expires_at

When this download expires.

download_count

Total download attempts. The count is incremented any time the customer clicks on the download link and the file download is still active.

active

Flag indicating if the download is still active. An active download is one that hasn’t hit the download_limit or the expires_at limit.