Table of Contents

txp:file_download_size

The file_download_size tag is a Single Tag. Textpattern will replace this tag with the formated file size of the file to be downloaded. Should be used in a download form.

Syntax

The file_download_size tag has the following syntactic structure…

<txp:file_download_size />

Attributes

Tag will accept the following attributes (case sensitive):

format="numbering style"

Select from dropdown options in Tag Builder Asst

decimals="number of decimal places"

Examples

Display formatted file size.

<txp:file_download_size format="kb" decimals="2" />

Default "files" form

<txp:text item="file" />: 
<txp:file_download_link>
<txp:file_download_name /> <txp:file_download_size format="auto" decimals="2" />
</txp:file_download_link>
<br />
<txp:text item="category" />: <txp:file_download_category /><br />
<txp:text item="download" />: <txp:file_download_downloads />

Other tags used: <file_download_category />, <file_download_downloads />, <file_download_link />, <file_download_name />, <file_download_size />, <text />