Error in adding feild "download file" in a Form
PermalinkYou need to create an override for the form block controller.
Create a new folder called form under:
application/blocks
so you now have
application/blocks/form
Copy file:
/concrete/blocks/form/controller.php
to your new directory so you now have
/application/blocks/form/controller.php
open up your new controller and edit:
change the first line of code:
namespace Concrete\Block\Form;
to
namespace Application\Block\Form;
and then after the line
use Exception;
add the new line
use FileImporter;
then save. This override will let the controller use the FileImporter.
It looks like there is a possible bug in the form block when using a file upload type field on the form.
If I'm correct you have added a form to your web page which includes a file upload field and when you go to upload a file as a website user you get the error message.
Will check if it is already logged as a bug and if not will log it.