oldman
01-07-2007, 10:23 AM
I'm playing with php:
<form enctype='multipart/form-data' action='myhandler.php' method='POST'>
and that end works but when I pick up the file in 'myhandler.php' and use move_uploaded_file, the attempt goes through (true) but the file never makes it. I'm useing
$uploadfile = $_SERVER['DOCUMENT_ROOT']."/Uploaded/test.jpg";
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile);
I printed the $_FILES, and all seems in order? I think the glitch is in the destination ($uploadfile). Any help?
<form enctype='multipart/form-data' action='myhandler.php' method='POST'>
and that end works but when I pick up the file in 'myhandler.php' and use move_uploaded_file, the attempt goes through (true) but the file never makes it. I'm useing
$uploadfile = $_SERVER['DOCUMENT_ROOT']."/Uploaded/test.jpg";
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile);
I printed the $_FILES, and all seems in order? I think the glitch is in the destination ($uploadfile). Any help?