![]() |
How to separate the directory for image and image thumbnail when the image is uploaded? - 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: How to separate the directory for image and image thumbnail when the image is uploaded? (/showthread.php?tid=27616) |
How to separate the directory for image and image thumbnail when the image is uploaded? - El Forum - 02-16-2010 [eluser]dimasVS[/eluser] Hi All, I need your help, I want to separate the directory when the image is uploaded, I want to put "image" in "uploads" directory and "image_thumb" in "upload_thumb" directory.. This is my script : Code: function do_upload(){ how to change the path ? I've been trying by put $config['upload_path'] after image uploaded but always failed.. Thanks for your help ! How to separate the directory for image and image thumbnail when the image is uploaded? - El Forum - 02-16-2010 [eluser]hqhdn[/eluser] You can to try with $this->image_lib->clear() ( The clear function resets all of the values used when processing an image. You will want to call this if you are processing images in a loop.) Or you can go to Code: http://ellislab.com/forums/viewthread/109434/ How to separate the directory for image and image thumbnail when the image is uploaded? - El Forum - 02-20-2010 [eluser]dimasVS[/eluser] thanks hqhdn, It just cause of directory permission... I've been repair it by chmod.. ![]() |