craft3-forms
craft3-forms copied to clipboard
Allow File Attachments
Allow users to attach files to their forms and email them to the owner.
- Set a
public $files = [];on the model to define files that should be attached. - Setup
UploadedFileobject foreach$fileson model - Setup
attachContentonownerMailto get file content and attach it to the email. - Added
errorsto the response of the form to return submission validation errors.