problems with file upload
Posted: Fri Jul 11, 2003 8:35 pm
I have a routine that uploads a selection of images from a form and then inserts the details of the record. It works flawlessly.
I then have a change routine which allows me to add more images or change existing images or details etc... I can change details with no trouble but when I try to change an image or add another image it refuses to upload the file. I could understand if it only happened when I tried to change an image and it couldn't overwrite the existing one, but it doesn't work when I try to upload another image with another name.
So... when I add a new record with an image, it says
/tmp/phpjT6HpK
Slide 1 was successfully uploaded!
And when I try to add another image to the record and upload it it says
F:\\www\\images\\hack1.jpg
Slide 2 could not be copied
It appears that when it is a new record being added, it uploads the file to a temp directory on my hosts server, and when I try to add a new image it says the source is on my F: drive.
I have read every post about uploads and am stumped, can anyone help?
I then have a change routine which allows me to add more images or change existing images or details etc... I can change details with no trouble but when I try to change an image or add another image it refuses to upload the file. I could understand if it only happened when I tried to change an image and it couldn't overwrite the existing one, but it doesn't work when I try to upload another image with another name.
So... when I add a new record with an image, it says
/tmp/phpjT6HpK
Slide 1 was successfully uploaded!
And when I try to add another image to the record and upload it it says
F:\\www\\images\\hack1.jpg
Slide 2 could not be copied
It appears that when it is a new record being added, it uploads the file to a temp directory on my hosts server, and when I try to add a new image it says the source is on my F: drive.
I have read every post about uploads and am stumped, can anyone help?