if ($_FILES["filename"]["size"] > $max_size) die ("<b>File too big! Try again...</b>");
copy($_FILES["filename"]["tmp_name"],"./".$_FILES["filename"]["name"]) or die("<b><font color='red'>Unknown error! Please e-mail me if the problem persists.</b></font>");
echo "<b><font color='green'>File Uploaded. <a href='../uploads/' target='_blank'>Click here</a> to see your file(s).</b></font>"; // for debug --> $filename --> ".$destination."/".$filename_name."</h2>";
}
?>
The variables at the beginning set the Action to post the picture into the supplied folder uploads.
Hence we need to create a folder in the main directory with CHMOD 777 [all permissions] to enable the files to be uploaded.
The form is basic input fields.
Files that are larger than the allocated amount will not be uploaded.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum