I'm trying to upload a file from android application to http server and getting this error. Any solution?
<p>When I try to access the PHP file (located on server) through browser I get the following error:</p>

<p><code>C:\xampp\htdocs\android_im\handle_upload.php</code></p>

<pre><code>&lt;?php 
    $target_path = "./";
    $target_path = $target_path . basename($_FILES['uploadedfile']['name']);

    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
    {
        echo "The file ". basename($_FILES['uploadedfile']['name']) ." has been uploaded";
    }
    else 
    {
        echo "There was an error uploading the file, please try again!";
    }
?&gt;
</code></pre>

<p><strong>Error in browser:</strong></p>

<pre><code>Notice: Undefined index: uploadedfile in C:\xampp\htdocs\android_im\handle_upload.php      on line 3

Notice: Undefined index: uploadedfile in C:\xampp\htdocs\android_im\handle_upload.php on line 4

There was an error uploading the file, please try again!
</code></pre>
