• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload Problem

#1
[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,

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.