When to Use
Use File fields for:- Identity documents (ID cards, passports, driver’s licenses)
- Contracts and agreements
- Invoices and receipts
- Proof documents (address, income, employment)
- Images and photos (damage, products, signatures)
- Medical documents
- Tax documents
- Certificates and licenses
- Supporting documentation
- Signed documents
- Use Text for URLs to external documents
- Use API Call to fetch documents from external systems
- Use document generation for creating documents (not collecting them)
Configuration Options
| Option | Description | Type | Default | Example |
|---|---|---|---|---|
key | Unique identifier | String | Required | identity_document |
name | Display label | String | Required | ”Identity Document” |
description | Help text for users | String | Optional | ”Upload ID card or passport” |
ai_description | Hint for Intelligence | String | Optional | ”Government-issued ID document” |
accept | Allowed file types (MIME types) | Array | All files | ["application/pdf", "image/*"] |
max_size | Maximum file size (bytes) | Number | 10485760 | 5242880 (5MB) |
max_files | Maximum number of files | Number | 1 | 5 |
required | Must upload at least one file | Boolean | false | true |
enable_intelligence | Enable Document Intelligence | Boolean | false | true |
visibility | Display setting | String | always-visible | hide-when-empty |
section | Section this field belongs to | String | None | Section UUID |
Examples
Identity Document
Collect government ID:Invoice Upload
Collect invoices:Damage Photos
Collect images of damage:Contract Document
Collect signed contract:File Type Restrictions
Use theaccept option to restrict file types:
Common MIME Types
| Type | MIME Type | Example |
|---|---|---|
application/pdf | Contracts, forms | |
| Images (all) | image/* | Photos, scans |
| JPEG | image/jpeg | Photos |
| PNG | image/png | Screenshots, graphics |
| Word | application/vnd.openxmlformats-officedocument.wordprocessingml.document | .docx files |
| Excel | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | .xlsx files |
| All files | */* | No restriction |
File Size Limits
Control maximum file size withmax_size (in bytes):
| Limit | Bytes | Configuration |
|---|---|---|
| 1 MB | 1,048,576 | "max_size": 1048576 |
| 5 MB | 5,242,880 | "max_size": 5242880 |
| 10 MB | 10,485,760 | "max_size": 10485760 |
| 20 MB | 20,971,520 | "max_size": 20971520 |
Set appropriate file size limits based on expected document types. ID scans: 5MB is sufficient. High-res photos: 10-20MB may be needed.
Multiple Files
Allow multiple file uploads withmax_files:
Single file only:
- Multiple pages of same document
- Several related documents
- Multiple photos of damage
- Various supporting documents
Document Intelligence Integration
Enable automatic data extraction withenable_intelligence: true:
When enabled, Document Intelligence:
- Automatically extracts data from uploaded documents
- Populates other fields in the case based on extracted data
- Validates extracted data against case schema
- Flags inconsistencies or missing information
- Text content from PDFs
- Structured data (names, dates, amounts, addresses)
- Information from scanned documents and images
- Data from forms and tables
- Key-value pairs from documents
ai_description guides what Intelligence should extract:
- List the exact fields to extract
- Mention document types Intelligence should expect
- Specify format of extracted data
- Indicate required vs optional extractions
File Storage
Uploaded files are:- Stored securely within the case
- Accessible to case members
- Included in case exports
- Retained according to workspace retention policies
- Visible in the case timeline when uploaded
- Original filename
- File size
- Upload timestamp
- Uploaded by (member)
- File type (MIME)
Validation
File fields enforce upload validation:Required Validation
- If
required: true, at least one file must be uploaded - User cannot proceed without uploading
File Type Validation
- Only specified MIME types accepted
- Rejected files show error message
Size Validation
- Files exceeding
max_sizerejected - Clear error message shown
Count Validation
- Cannot exceed
max_files - Disable upload when limit reached
Best Practices
Set appropriate file types:- Be specific when possible (PDFs only for contracts)
- Allow both PDF and images for flexibility (scans, photos)
- Don’t be overly restrictive (users may have various formats)
- Consider document type (ID scans: 5MB, photos: 10-20MB)
- Too restrictive: frustrates users with valid files
- Too generous: allows unnecessarily large uploads
- Specify accepted formats in description
- Mention size limits if restrictive
- Explain what to upload (“front and back of ID”)
- Enable for documents with extractable data
- Not necessary for photos without text
- Reduces manual data entry significantly
- Single file: official documents, contracts
- Multiple files: supporting docs, damage photos
- Consider workflow: easier to upload multiple at once
- Group related file fields in sections
- “Identity Documents”, “Financial Documents”, “Photos”
- Makes case data easier to navigate
- “Identity Document” not just “Document”
- “Damage Photos” not just “Photos”
- Helps users and case managers understand purpose
Related Field Types
Text
Use for URLs to external documents
API Call
Use to fetch documents from external systems
Document Intelligence
Learn about automatic data extraction
Data Schema Overview
Back to Data Schema overview