file is not uploading into server in android
<p>iam uploading a image file into server while uploading in to server in android it displaying error message.</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
&lt;html&gt;&lt;head&gt;
&lt;title&gt;404 Not Found&lt;/title&gt;
&lt;/head&gt;&lt;body&gt;
&lt;h1&gt;Not Found&lt;/h1&gt;
&lt;p&gt;Your browser sent a request that this server could not understand.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.&lt;/p&gt;
&lt;/body&gt;&lt;/html&gt;
</code></pre>

<p>My Php code</p>

<pre><code>&lt;?php
header('Content-type: text/xml');
include_once('registration_db_con.php');
$content='&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;Kudos_Image&gt;&lt;Photos&gt;';

   $filename=basename($_FILES['uploaded_file']['name']);
  // print_r ($filename);
   $poto_title=explode(".",$filename);

   $ext = pathinfo($filename, PATHINFO_EXTENSION);

   $r = mysql_query("SHOW TABLE STATUS LIKE 'photos'");
   $row = mysql_fetch_array($r);
   $Auto_increment = $row['Auto_increment'];
   mysql_free_result($r);

   $file_name="kudoskudos_img_".$Auto_increment.'.'.$ext;

   $target_Path="../uploads/photos/".$file_name;


   $arr =  array('gif','png','jpg','jpeg');
   if(in_array($ext,$arr))
   {
       $copied = move_uploaded_file ($_FILES['uploaded_file']['tmp_name'], $target_Path);
      $date=date("Y-m-d H:i:s");
       $disp_module="INSERT INTO photos(file_name,photo_title,album_id,caption,views,createdon,createdby,editedon,status) VALUES('".$file_name."','".$poto_title[0]."','".$_POST['album_id']."','".$_POST['caption']."','0',now(),'".$_POST['user_id']."',now(),'1')";
       $sql=mysql_query($disp_module);  
       $id=mysql_insert_id(); 

       if($id)
       {
             $content.="&lt;Insert_Photos&gt;".$id."&lt;/Insert_Photos&gt;";
       }
       else
       {
            $content.="&lt;Insert_Photos&gt;0&lt;/Insert_Photos&gt;";
       }


  }

  $content.='&lt;/Photos&gt;&lt;/Kudos_Image&gt;';
  echo $content;


 ?&gt;
</code></pre>

<p>calling function in android</p>

<pre><code>  HttpClient httpClient = new DefaultHttpClient();
  HttpPost postRequest = new HttpPost(com.mythrii.kudoskudos.Utility.urlpath+"webservices/upload_kudos_img.php");

                byte[] data = IOUtils.toByteArray(is);
                InputStreamBody isb= new InputStreamBody(new ByteArrayInputStream(data), convertMediaUriToPath(ImageCaptureUri));

                MultipartEntity multipartContent = new MultipartEntity();
                multipartContent.addPart("uploaded_file", isb);
                multipartContent.addPart("user_id", new StringBody(""+user_id));
                multipartContent.addPart("album_id", new StringBody(""+album_id));
                multipartContent.addPart("caption", new StringBody(""));

                postRequest.setEntity(multipartContent);
                HttpResponse response = httpClient.execute(postRequest);
                HttpEntity entity = response.getEntity();
</code></pre>
