creed19 Posted January 30, 2007 Share Posted January 30, 2007 hi......i m hvin some PROB wid the (below) code;it dosnt UPLOAD 2 the specified place.........plz help me out.CODE:<?phpif (($_FILES["file"]["type"] == "image/gif")|| ($_FILES["file"]["type"] == "image/jpeg")&& ($_FILES["file"]["size"] < 20000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; if (file_exists("E:\Inetpub\wwwroot\upload\" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]); echo "Stored in: " . "E:\Inetpub\wwwroot\upload\" . $_FILES["file"]["name"]; } } }else { echo "Invalid file"; }?> Link to comment https://forums.phpfreaks.com/topic/36308-file-upload-problem/ Share on other sites More sharing options...
steveclondon Posted January 30, 2007 Share Posted January 30, 2007 what error are you currently getting Link to comment https://forums.phpfreaks.com/topic/36308-file-upload-problem/#findComment-172634 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.