Jump to content

moveupload


jagguy

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.