Guides
Tutorials
Pop Tags

File Fields

The file field is similar to the image field. It adds a file widget to the form, letting users upload new files or select existing files. Uploaded files are kept separately from the public design files and are served out of the Akamai CDN.

Using a file field in a template is also similar to using an image field. Lets take a file field simply called “file”. The basic way of using it in a template is simply using the field as a tag:

<pop:content><pop:file/></pop:content>

This will output a link to the file.

To get more detailed control over how the file is presented, open up <pop:file> and use <pop:src>, <pop:size> or <pop:title> inside of it.

<pop:content>
<pop:file>
<a href="<pop:src/>" class="file">Download File</a>
</pop:file>
</pop:content>
Continue to Pagination »