Well first and foremost, you need to have the appropriate permissions. I think that is what is giving you the error message “Access Denied”.
That might not be the only problem, however. If you can provide us with some code that you have tried, perhaps we can look at it and go from there.
I copied the below out of one of my scripts. it also has some error checking for failure (abit more meaningful errors)
[php]
<?
// Create variables that are easier to process and more meaningful.
$FileSize = $_FILES[userfile][size];
$FileType = $_FILES[userfile][type];
$FileName = $_FILES[userfile][name];
$FileTemp = $_FILES[userfile][tmp_name];
$FileError = $_FILES[userfile][error];
switch ($FileError){
case "0":
if (!copy($FileTemp, "/var/www/html/uploads/$FileName"))
die("FAILURE in UPLOAD");
echo "SUCCESS
";
break;
case "1":
echo"
";
echo "ERROR: File Size is to large for PHP.INI";
echo "
";
break;
case "2":
echo"
";
echo "ERROR: File Size is to large for FORM";
echo "
";
break;
case "3":
echo"
";
echo"ERROR: File Only Partially Uploaded";
echo "
";
break;
case "4":
echo"
";
echo "ERROR: No FILE to Upload";
echo "
";
break;
}
?>[/php]
Finally you might want to check out http://us4.php.net/features.file-upload. It does have more detail that can help you understand the file upload a bit better.
Good Luck