How to separate the directory for image and image thumbnail when the image is uploaded ? |
[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 !
[eluser]Joey Beltran[/eluser]
I tried this $config['new_image'] = '/path/to/new_image.jpg'; instead of using $config[‘upload_path’] and it worked. That will create a copy as thumbnail since you are resizing the file. Checkout the notes for "Creating a Copy" at Image Manipulation Class docs. For easy access to CI documentation, I suggest this -> http://www.kintek.com.au/web-design-blog...extension/
[eluser]dimasVS[/eluser]
Hi Joey, Thanks for your answer.. But I also want to upload the origin image, not only thumbnail. Any suggest ??? |
Welcome Guest, Not a member yet? Register Sign In |