The file upload Custom Field is useful for linking to files that need to be managed in bulk. You can store files like PDF, text files, etc.
Tip: See also, Basic Field Settings.
Field Creation Form
The File type field comes with two permutations. Display File As Link to File or Display File As File URL only. It acts as you would think, Link to File just puts the uploaded file into a field and prints a hypertext link to it on the store. However, File URL only creates a new URL and prints it by default in the store, See Screenshot above. File URL only is extremely useful for theme customizations.
Tip: Allowed File Types allows users to choose which types of files the field will accept. You can input more than one by separating them with commas. To allow all file types just leave this field blank.
Content Entry Form
Display as - Link to File
Tip: Leaving the "File display name section" blank will replace of the actual file with whatever is inputted in here.
Display as - File URL only
Default Liquid Code
The Edit Code section allows a user to edit how a field prints or functions. The default code for this type of field is found below.
For more information about code customization and the code editor itself, visit our Guide to the Snippet Editor.