php upload for the windows mobile OS?
Posted: Sat Jul 08, 2006 5:58 pm
I am attemping to use a simple php upload script on a windows mobile enabled device. I use php vs.4.4.2. Here is the code snippet:
Code:
this is just the upload portion. Now the error Im getting is:
Not Acceptable
An appropriate representation of the request resource (my file) could not be found on this server
now this script works fine in a normal IE browser. Anybody know what might be going on here? Or a go around?...THANKS
Code:
Code: Select all
if (filecheck($filenamea) == FALSE )
die ('Image 1 is not of an accepted type');
//if the temp file1 is there copy it to the server
if (@is_uploaded_file($_FILES["imagepath"]["tmp_name"])) {
copy($_FILES["imagepath"]["tmp_name"], "/home/conner/public_html/mobile/storewalkaudit/images/" . $_FILES["imagepath"]["name"]);
echo "<br>";
}Not Acceptable
An appropriate representation of the request resource (my file) could not be found on this server
now this script works fine in a normal IE browser. Anybody know what might be going on here? Or a go around?...THANKS