Add a File Field
File fields let people attach documents to a record: plans, certificates, photos, and other supporting documents. This guide covers naming the field, restricting the file types, size, and number of files, labeling the document category, and limiting who can open the files.
Prerequisites
- Your role has Configure Entity on the entity, and the entity is not locked.
- You know which file formats and sizes your review process accepts.
Steps
Open the entity's Configure page
Go to System Tools then Entities, click the ⋯ menu on the entity's row, and choose Configure.
Click + on the section
In the Sections pane, click the + button (tooltip Add Field) on the section the field belongs in.
Pick File
On the Custom tab, choose File under All.
Name the field
Type the Field Label for what people attach, such as Construction Plans or Insurance Certificate. Use the Field Description to say what a complete document looks like.
Turn on file restrictions
Under Advanced Configuration, turn on Enable File Restrictions. With it off, the field accepts any file of any size.
Choose the allowed file types
Open Allowed File Types and pick one or more types. Uploads of other types are rejected.
Set the maximum size
Enter Maximum File Size and pick the Size Unit (KB, MB, or GB). The limit applies to each file.
Limit the number of files
Enter Maximum Number of Files to cap how many files can be attached. Leave it empty for no limit.
Name the document category
Enter a Document category key (a short code such as construction_plans, up to 64 characters) and a Document category label (the readable name, up to 100 characters). The key stays with every uploaded file, so choose one you will not need to change.
Limit who can open the files (optional)
Turn on Limit Document Visibility, then choose the audience: Allow public users, Applicants attached to the record, and the Allowed staff roles. If you turn this on and choose no audience, only super administrators can open the files.
Click Add
Click Add to create the field.
Allowed file types
| Option | Includes |
|---|---|
| PDF Documents (.pdf) | |
| Word Documents (.doc, .docx) | .doc, .docx |
| Excel Spreadsheets (.xls, .xlsx) | .xls, .xlsx |
| PowerPoint Presentations (.ppt, .pptx) | .ppt, .pptx |
| Images (JPEG, PNG, GIF) | .jpg, .jpeg, .png, .gif |
| Text Files (.txt) | .txt |
| CSV Files (.csv) | .csv |
| ZIP Archives (.zip) | .zip |
| AutoCAD Drawings (.dwg) | .dwg |
| All Files (*) | Any type |
Example
| Setting | Value |
|---|---|
| Field Label | Construction Plans |
| Enable File Restrictions | On |
| Allowed File Types | PDF Documents, AutoCAD Drawings |
| Maximum File Size / Size Unit | 50 / MB - Megabytes |
| Maximum Number of Files | 10 |
| Document category key / label | construction_plans / Construction Plans |
| Limit Document Visibility | On: Applicants attached to the record, plus the Plan Reviewer role |
Common mistakes
- Leaving restrictions off. Without restrictions, applicants can upload any format, including ones your reviewers cannot open.
- Setting the size too low. Scanned plan sets are large. Test with a real document before you publish the form.
- Turning on Limit Document Visibility with no audience. Only super administrators can then open the files.
- Changing the document category key later. Files already uploaded keep the old key.