Topic: need to upload same photo twice to get it to work - please help (Read 1561 times)
Google dot what?
Posts: 2
16 credits Members referred : 0
« on: Apr 10, 2007, 10:48:33 am »
I am using a file based on the example foto_upload.php. If I set $this->rename_file = true; the photo never uploads, even though the message $foto_upload->show_error_string(); reports success.
If I set $this->rename_file = false; then the image uploads successfully but only th second time I upload the same image.
I am totally confused, it makes no sense? What is different the second time?
the reason the photo never uploads in example 1 above is that the file name is always new each time, even though the phot is the same. why doe the filename need to be the same twice for it to work?
thank you very much, mark in nepal
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Apr 10, 2007, 11:04:04 am »
do you tried the regular upload? do you changed the example file?
Google dot what?
Posts: 2
16 credits Members referred : 0
« Reply #2 on: Apr 10, 2007, 12:22:12 pm »
you know what I did? I had $my_upload->upload_dir = $photoPath; instead of $foto_upload->upload_dir = $photoPath; on just one line and I could not see it until your suggestion - thank you very much!! very nice class, thanks again.
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #3 on: Apr 10, 2007, 01:07:45 pm »
hehe, you're welcome...
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6375