FilepublishFileSizeMB
Version: - stringSummary
Returns the file size in megabytes (MB) of the current file.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("FilepublishFileSizeMB")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("FilepublishFileSizeMB"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("FilepublishFileSizeMB");
}
Outputting the template tag
<!--@FilepublishFileSizeMB-->
Check if string has a value
<!--@If Defined(@FilepublishFileSizeMB)-->
Let's output this tag here: <strong><!--@FilepublishFileSizeMB--></strong>
<!--@EndIf(@FilepublishFileSizeMB)-->