FilepublishFileSizeKB

Version: - string  

Summary

Returns the file size in kilobytes (KB) of the current file.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("FilepublishFileSizeKB")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("FilepublishFileSizeKB"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("FilepublishFileSizeKB"); }

Outputting the template tag

<!--@FilepublishFileSizeKB-->

Check if string has a value

<!--@If Defined(@FilepublishFileSizeKB)--> Let's output this tag here: <strong><!--@FilepublishFileSizeKB--></strong> <!--@EndIf(@FilepublishFileSizeKB)-->