I'm using HTTP post to upload image to server and I have the following PHP code:
$base_path = "";
$target_path = $base_path . basename ( $_FILES ['uploadfile'] ['name'] );
if (move_uploaded_file ( $_FILES ['uploadfile'] ['tmp_name'], $target_path )) {
echo "Good";
} else {
echo "FAIL";
}
I'm sure the image has been uploaded to temp. But no matter what, I just can't store image file. my current permission is 664 for testing.