![]() |
file upload issue [RESOLVED] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: file upload issue [RESOLVED] (/showthread.php?tid=31489) |
file upload issue [RESOLVED] - El Forum - 06-21-2010 [eluser]gafroninja[/eluser] Hey Guys, Yup you've guessed it, I have an issue with the file upload class. I'm sorry to bother people about it, but I feel I'm missing something and can't for the life of me figure it out. I've set the folders chmod 777. view: Code: <?= form_open_multipart('admin/page_update/'); ?> controller: Code: function page_update() model: Code: var $pageImagePath; The form does more, but ive removed all the excess to get this working. I hope you guys can help. Thanks in advanced guys and gals. Cheers, Darren file upload issue [RESOLVED] - El Forum - 06-21-2010 [eluser]danmontgomery[/eluser] And would you care to share with us what the issue is? ![]() file upload issue [RESOLVED] - El Forum - 06-21-2010 [eluser]gafroninja[/eluser] haha yea, it doesn't upload the image lol. file upload issue [RESOLVED] - El Forum - 06-21-2010 [eluser]NeoArc[/eluser] Hmm, try this: Code: $this->pageImagePath = realpath(APPPATH . '../images/pages').'/'; file upload issue [RESOLVED] - El Forum - 06-21-2010 [eluser]gafroninja[/eluser] nope mate. tried. I'm using MAMP for your reference. I've made the images folder and its children chmod 777. Cheers Darren file upload issue [RESOLVED] - El Forum - 06-21-2010 [eluser]danmontgomery[/eluser] If it doesn't upload the image, then the error can be retrieved with $this->upload->display_errors(); file upload issue [RESOLVED] - El Forum - 06-21-2010 [eluser]gafroninja[/eluser] Ok solved, but I'm a little embarrassed to say :S 'upload_types' => 'jpg|jpeg|gif|png' should be: 'allowed_types' => 'jpg|jpeg|gif|png' lol Thanks all for helping me get there in the end! |