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

[eluser]barisv[/eluser]
Hi,

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

[eluser]ramm[/eluser]
Code:
$upload_data['file_name'];
After upload returns the file name already changed.

El Forum

[eluser]barisv[/eluser]
Thank you very much.