Picture Upload Problem : "You did not select a file to upload." |
[eluser]vasily[/eluser]
I want to post news from admin panel and add a thumbnail image for this news. My controller function is this: Code: function add_thumb(){ and my view for form is this: Code: <?php echo $error;?> This codes always returns "You did not select a file to upload." error. My os is ubuntu 10.04. I tested chromium and firefox. Where am i doing wrong. Can someone help me please.
[eluser]Flemming[/eluser]
quick guess: your input is called 'resim' but you don't tell your controller. from the manual: If you would like to set your own field name simply pass its value to the do_upload function: $field_name = "some_field_name"; $this->upload->do_upload($field_name); hope that helps?
|
Welcome Guest, Not a member yet? Register Sign In |