Page 1 of 1

php upload for the windows mobile OS?

Posted: Sat Jul 08, 2006 5:58 pm
by piznac
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:

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

Posted: Wed Jul 12, 2006 12:12 am
by Benjamin
Are you setting the form enctype?

Code: Select all

<form enctype="multipart/form-data" name="MyUploadForm" action="FileLoader.php">
  <!-- blah blah -->
</form>