CodeIgniter Forums

Full Version: uploading more than one file to different paths
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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?

El Forum

[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 !!!