Welcome Guest, Not a member yet? Register   Sign In
validate type="file"
#11

[eluser]jawnknee[/eluser]
After wasting about 2-3 hours I finally figured out the problem. It took me creating a brand new application and trying from scratch to get it working. The problem was you have to specify the file input name in:
Code:
//correct
$this->upload->do_upload('myfile');

//incorrect
$this->upload->do_upload();

I'm not sure if this is a code igniter bug or not. In the CI docs it says specifying the field is optional, yet it wouldn't work for me unless I specified this. Hope this helps someone else.




Theme © iAndrew 2016 - Forum software by © MyBB