The File Field
The File field allows uploading and managing attached files, with multiple configuration options to suit different storage and display needs.
Field Structure
- Field type: File upload
- Multiple files: Configurable
- Allowed formats: Customizable
- Maximum size: Set per field
Configuration
- File types: Restriction by extensions
- Labels: Unique identification for each file field
- Preview: Preview of images and documents
- Versions: Automatic generation of thumbnails
Association with resources
Unlike other fields, files:
- Are associated through unique labels
- Are not stored in the metadata
- Can have multiple versions
- Maintain their own metadata
Practical example
Scenario: Configure a field for supporting documents:
- Label: “attached_documents”
- Type: File
- Allowed formats: PDF, DOCX, XLSX
- Maximum size: 10MB per file
- Multiple files: Yes (up to 5)
Each file associated with a resource can be seen in its identified label, each with a different color. It is possible to view it from the detail view of each resource or from the edit form once the resource has been uploaded and saved.