I am developing an application to upload an image from Android mobile to the web server. On the android side, I am using the code as mentioned in the link here Android file uploader with server-side php
On the server side, when I try to receive the file, it fails in move_uploaded_file function. The apache server side php code is
$target_path="uploads/";
$target_path=$target_path.basename($_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$target_path)) {
echo "OK";
}else{
echo "FAIL"; }
The problem is that the file is not getting copied in the uploads folder. Can anyone please help?
Rgds, Sapan