Hey friends,
i had made custom page in which user had form, in which user can upload files and write some data.
Now,
All the data are coming on another custom page but not the file which user will upload.

here is code of the client side

<form id="recipeform" enctype="multipart/form-data" onsubmit="return checkAll()" action="submit.php"  method="post">
<dl>
        	<dt><label for="upload">Image of Recipe</label></dt>
                <dd><input type="file" name="file" id="file" /></dd>
</dl>
</form>

now the code of the server

if (($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg")|| ($_FILES["file"]["type"] == "image/pjpeg"))
          {
          if ($_FILES["file"]["error"] > 0)
            {
                echo "Error: " . $_FILES["file"]["error"] . "<br />";
            }
          else{
              if(move_uploaded_file($_FILES["file"]["tmp_name"],"newupload/" . $_FILES["file"]["name"])){
                  $imageurl = "newupload/" . $_FILES["file"]["name"];
              }
              else{
                  echo "File uploading has not completed." ;                 /// it just giving this error msg...
              }
            }
          }
        else
          {
          echo "Invalid file";
          }

the answer of this code is
i don't know the code seems to right...
i have tried all the thing...
plz check it and give me replay if you found any error.