Hello, i updated grav with all plugins to latest version and now, sending uploaded file from from as email attachement is not working, i receive email without any attachments. This is my page with form:
I am using antimatter theme, but the theme is not updated for support with forms 2.0 so i added {% include "forms/fields/formname/formname.html.twig" %} like it is in plugin’s template. Can you help me? Thanks
I am running email v2.5.0, form v2.0.3 and antimatter v2.0.0. When i submit the form, i get this error:
TypeError
Argument 1 passed to Grav\Plugin\EmailPlugin::buildMessage() must be of the type array, null given, called in \user\plugins\email\email.php on line 74
you were right, this fixed sending form but attachments are still not working, i recieve email with text input values, but no attachement. I also tried uploading .exe file and it sent email, but i have configured plugin to accept only image types.
finally found it, issue was on my side and it is working now. But i prefer old upload without ajax, it is possible to use classic input field without javascript? thanks
It’s really not possible. It did ‘work’ before in basic usage, but fell apart quickly when used in complex scenarios like in list items. Without Ajax, the file upload happens when the form is submitted, and any errors etc (especially nested in other fields) are very hard to handle cleanly when repopulating the form for example. it’s just too messy and required so many workarounds and cludges we decided to rewrite that field entirely with a much cleaner and simpler ajax solution.