Managing Files With the Attachment Data Type
2 minutes to readIn Flex DataParts, users can manage files using the Attachment data type. Files stored using this data type are saved in tables.
Configuring Attachment Fields in Table Design
When configuring an Attachment field in table design, you can set various options:
- Permitted file types: Choose the types of files that can be uploaded.
- File size restrictions: Set minimum and maximum file sizes (Max: 1024 MB).
- Image options:
- Smart resizer: Automatically generate smaller images for an optimized performance on rendered DataParts. When enabled, the following images are generated:
- Small: 100×100 px
- Medium: 400×200 px
- Thumbnail: 640×640 px
- Large: 1000×1000 px
When an attachment image is rendered on a DataPart, the most optimal image size is automatically used based on the available space. This ensures a balance of high image quality and best loading performance.
- Optimize for Retina displays: Automatically generate additional images for high-resolution screens such as Retina displays.
- Smart resizer: Automatically generate smaller images for an optimized performance on rendered DataParts. When enabled, the following images are generated:
- Alt text: Provide alternative text for accessibility to be displayed on DataParts.
- Title: Add a title that can be displayed on DataParts.
Once an Attachment field is configured, you can manage the files in the field using table datasheet, Flex DataParts and REST API.
Using Attachments in Table Datasheet
In the table datasheet view, you can manage attachments in the following ways:
- Upload new files to the Attachment field.
- Preview the files as images.
- Check details such as file type, size, upload date, and last modification.
- Open the files in a new tab or download them.
- Manage the files using the rename, replace and delete options.
Using Attachments in DataParts
You can use the files stored in Attachment data type fields in various DataParts. You can choose to display them as images or just show the file name or download link. These options are available in Reports and Details/Update Forms.
Uploading new attachments is possible through Submission, Sign–Up, and Details/Update Forms using the file upload form element.
Using Attachments in REST API
You can download, replace, get details, update names, or delete attachments via REST API.