Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 969 Bytes

file-uploads.md

File metadata and controls

20 lines (13 loc) · 969 Bytes

File Uploads

UploadedFile Object

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.

File Constraints

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.

Return to index