Mysterious upload error, do_upload function doesn't exist? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Mysterious upload error, do_upload function doesn't exist? (/showthread.php?tid=6501) |
Mysterious upload error, do_upload function doesn't exist? - El Forum - 03-01-2008 [eluser]Unknown[/eluser] Hi there, I am trying to use the File Upload library to upload an image. But I get the following error when I try to load the page: Quote:Fatal error: Call to undefined function do_upload()in /home/wyotrail/public_html/edit/igniter/application/controllers/images.php on line 134 I'm pretty sure I must be missing something simple. The relevant code is as follows: Controller Code: function _upload_image() { View: Code: <? echo form_open_multipart('images/add'); ?> The add() function of my Image controller calls the _upload_image() function above upon submitting the form. If anyone has an idea how to resolve this, please let me know. Thanks! Mysterious upload error, do_upload function doesn't exist? - El Forum - 03-01-2008 [eluser]Seppo[/eluser] Read carefully =) Code: $this->upload>do_upload('image') Mysterious upload error, do_upload function doesn't exist? - El Forum - 03-01-2008 [eluser]Unknown[/eluser] I knew it was going to be something stupid. Thanks a lot though! |