FilepublishUploadFolder

Version: - string  

Summary

Returns the path to the folder for uploaded files.

Settings

The value is based on the Folder input field in the Upload section for the paragraph module.

(Page > Paragraph > Module tab > Upload panel > Folder)

Remarks

An input field with the name Folder must be defined in the form and the value must be a path to a valid folder.

Examples

Outputting the template tag

@GetString("FilepublishUploadFolder")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@FilepublishUploadFolder-->

Check if string has a value

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