PHP / CodeIgniter - $_FILES being ignored completely -
i have following in view
<input class="file" name="mpfile[]" type="file" size="32" /> in controller, have following code.
if(isset($_files['mpfile'])) { echo 'testing'; } fairly simple yes? .... except every time run it, no matter if have choosen file or not, runs ... should run echo if have file ready input?
make sure form element has following attributes:
method="post"
and
enctype="multipart/form-data"
- christian
Comments
Post a Comment