CodeIgniter Forums
Upload Problem - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Upload Problem (/thread-39187.html)

Upload Problem - El Forum - 03-03-2011


I am basically uploading image by using file uploading class. If the name of image is same with any of uploaded images on the file system, it is renamed such as image.jpg -> image1.jpg. I see that.

But when I am trying to put that value to the db, it takes its old name. For instance if I want to upload a image is named "image.jpg" that is already exists, even if its renamed, when I call $data['client_name'], it returns me "image.jpg" but I want its renamed value.

How can I overcome this issue ?

Thanks in advance,

Upload Problem - El Forum - 03-03-2011

After upload returns the file name already changed.

Upload Problem - El Forum - 03-04-2011

Thank you very much.