I have written a script that uploads a file correctly, however the file has zero size in the directory. What is the problem withthis script:
<?
if ($image == "none"){
echo "Problem = No File To Upload";
exit;
}
if ($image_size == 0){
echo "Error: Uploaded File is Zero length.";
exit;
}
$upfile = "/home/nemp3/allenrochegroup-www/testimages/".$image_name;
if ( !copy($image, $upfile)){
echo "Error: File Could not be placed.";
exit;
}
echo "File Uploaded Successfully";
?>
I will expand upon it once I get this part working right.