Uploading Files and Images
The Caspio Bridge “File” data type is a versatile and robust field that can accommodate files of any type including both images and documents.

How to use the File data type
To add a File field to your table open the table in Design view. Name the field and select File from the data type dropdown.

Submitting a file
Several options are available to configure a File field in a submission DataPage:

The most commonly customized options are:
- Save to folder – this allows you to save files submitted through this form to a sub-folder in the Caspio Bridge Files section
- Maximum allowed size – this option will limit the maximum file size that can be submitted through this form
It is not necessary to declare the expected file type in a submission form. All file types will be accepted.
Displaying and downloading a file
When displaying the contents of a File field on a results page you have separate options for images and other files. The field options section allows you to indicate whether the file field contains an image or a file, or whether Caspio Bridge should attempt to detect the type of file.

Image Options (1)
You can select the default width and height to display an image file. It is recommended that you select only width or height as the remaining attribute will be dynamically calculated and preserve the image's aspect ratio (your image will not appear distorted).
You can also select a default image in case the image data is not available. It is a useful and widely used practice to provide a standard image to indicate the lack of an image file for that specific record.
On the Advanced tab, you can also add text descriptions to your images using the Image Alt Attribute. Alt attributes appear as rollover text for the images, and are essential for Section 508 compliance to support visually impaired individuals using screen readers. By default, Image Alt Attributes automatically display the file name, but you can also display custom text across all images or choose a dynamic value from another field in the same record.
File Options (2)
By default, all non-image file types will be displayed as a downloadable link. You can customize the text of the link by including the folder path, or by writing your own hyperlink text.

