jagguy Posted November 20, 2006 Share Posted November 20, 2006 Hi,q)I am trying to upload a directory of small image files. I have the directory name and an array of filenames to upload. I can't seem to use moveupload as it doesn't work . Here is an example. I didn't want to upload 1 file at a time so I am doing abatch upload if possible. How come this fails$file="c:/www/php/imagetest/one33.jpg"; $target_path= "c:/www/php/images2"; if(move_uploaded_file($file, $target_path)) { echo "<strong>Please enter details for your photo you uploaded as <br> ". ( $filename). " to be entered into the system</strong>";} else{.....//nothing gets uploaded and the error is moveuploaded returned false. q)Is it possible to uplad multiple images from a directory using php eg just give directory name and all file are upladed like 50 of them? Link to comment https://forums.phpfreaks.com/topic/27850-moveupload/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.