Sublime directory Surf the web anonymous Pagerank Monitor


need to upload same photo twice to get it to work - please help

marknepal
Tue 10 April 2007, 10:48 am GMT +0200
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

olaf
Tue 10 April 2007, 11:04 am GMT +0200
do you tried the regular upload? do you changed the example file?

marknepal
Tue 10 April 2007, 12:22 pm GMT +0200
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.

olaf
Tue 10 April 2007, 01:07 pm GMT +0200
hehe, you're welcome...

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional