Concrete5 File Uploads with Forms
If you use Form Helpers and add a file upload there's a gotcha, which can drive you insane if you don't know about it:
The form encoding type has to be set to multipart, like this:
<form method="post" enctype="multipart/form-data" action="<?php echo $this->action('submit')?>">
If you don't do this, your file will never turn up, and you will be debugging like mad and not understanding where the problem is :-)
May 4th, 2011 at 2:27 pm
Thanks!!!! I forget it and I really was debugging like mad for a whole morning.