CodeIgniter Forums

Full Version: Upload Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


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,

El Forum

After upload returns the file name already changed.

El Forum

Thank you very much.