When you retrieve a FileType's data from a form, an instance of UploadedFile will be returned. This is a small wrapper object around PHP's native uploaded file array.
The following constraints can be used on the FileType field:
Constraint | Description |
---|---|
Extension | Ensures the file has an allowed extension |
MimeType | Ensures the file has an allowed mime type |
Size | Ensures the file size is between an allowed range |
See the file upload example for usage examples of these constraints.