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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.