Last updated:
File
The File field lets a form user upload a file. The Forms creator controls what kind of file is accepted.
| Property | Value | Description |
|---|---|---|
| Pick file | Text | Shown when no file has been picked yet. |
| Picked file | Text | Shown once a file has been picked. |
| Allowed files | List of MIME types | Restricts which files can be uploaded; by default all files are allowed. |
| Maximum size | 0–25 (MB) | The maximum allowed file size. |
Errors
Section titled “Errors”| Message | Meaning | Solution |
|---|---|---|
| Media size cannot be more than {maximum size}MB | The uploaded file exceeds the configured maximum size. | Increase the maximum size, or ask the user to upload a smaller file. |
| This type of media is not allowed | The uploaded file isn’t one of the allowed MIME types. | Ask the user to upload a supported file type. |
- Be precise with MIME types in Allowed files: an overly narrow list rejects files that should be allowed.
- Set a sensible Maximum size for the use case; large files slow the app down.