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

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -