CodeIgniter Forums
uploading more than one file to different paths - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: uploading more than one file to different paths (/thread-11226.html)



uploading more than one file to different paths - El Forum - 08-31-2008

[eluser]Unknown[/eluser]
Once the upload lib is loaded, i can't configure it to upload files to another path. We don't have the clear method as in the image lib.

Someone done this already?


uploading more than one file to different paths - El Forum - 08-31-2008

[eluser]Sarfaraz Momin[/eluser]
I think you have not checked the upload lib documentation properly. You can use a different config array with the new path and use the initialize statement to reinitialize the upload lib with the new path.

Code:
$this->upload->initialize($config);


Hope this help.

Have a good day !!!