Hi,
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.
$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
“. ( $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?