28, May 2012

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

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: need to upload same photo twice to get it to work - please help
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author 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: Male
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: Male
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
Tags : upload twice Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: need to upload same photo twice to get it to work - please help
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:29:31 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.