我正在尝试将文件从Android应用程序上传到http服务器并收到此错误。 有解决方案吗

When I try to access the PHP file (located on server) through browser I get the following error:

C:\xampp\htdocs\android_im\handle_upload.php

<?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!";
    }
?>

Error in browser:

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!