![]() |
Upload and resize two files in one go - 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: Upload and resize two files in one go (/showthread.php?tid=15618) |
Upload and resize two files in one go - El Forum - 02-10-2009 [eluser]geogis[/eluser] Hello, I am getting frustrated with that code... I am trying to uplaod 2 files in one go. They have to be resized as well... Here is what I have. Upload and resize function: Code: function do_upload($filename,$field) The code I am using when processing the form: Code: $data["file"] = $_FILES["userfile"]['name']; $category and $town are given before that code. The problem? It uploads both files to './system/images_adds/' directory and always resize and copy the first file to new directory './system/images_adds/test' but never the second one. I need to have both of them resized in 'test' folder. What am I doing wrong? Thanks for help! Upload and resize two files in one go - El Forum - 02-17-2009 [eluser]geogis[/eluser] Anyone can help? Upload and resize two files in one go - El Forum - 02-17-2009 [eluser]umefarooq[/eluser] check this post will help you http://ellislab.com/forums/viewthread/91422/ |