Uploaded File Details
");
printf("Name: %s
", $HTTP_POST_FILES["userfile"]["name"]);
printf("Temporary Name: %s
",
$HTTP_POST_FILES["userfile"]["tmp_name"]);
printf("Size: %s
", $HTTP_POST_FILES["userfile"]["size"]);
printf("Type: %s
", $HTTP_POST_FILES["userfile"]["type"]);
if (copy($HTTP_POST_FILES["userfile"]["tmp_name"],"c:/temp/".$HTTP_POST_FILES["userfile"]["name"])) {
printf("File successfully copied");
} else {
printf("Error: failed to copy file");
}
?>