I have a web service like
if (isset($_FILES["file"])){
$filename = $_FILES['file']['tmp_name']);
if (is_uploaded_file($filename))
echo "is Uploaded";
else
echo "is NOT uploaded";
}
else{
echo "is not set";
}
Then I call the webservice like so:
curl -i -F 'file=@/usr/home/mydomain/testfile.pdf' -F 'parm1=xxx' -F 'param2=123'
http://anotherdomain/my_web_service.phpTHE PROBLEM: I am ALWAYS getting "is NOT uploaded". From what I can tell
$_FILES["file"] IS SET
But it is empty
When I print $filename is always empty
I contacted the webservice from the command line(as above) and also by a php program using curl and I always get the same result
What bothers me even more is that is works on my local development machine. It does not work on the actual server. I ran out of ideas
HELP!!!