php upload for the windows mobile OS?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
piznac
Forum Newbie
Posts: 1
Joined: Sat Jul 08, 2006 5:55 pm

php upload for the windows mobile OS?

Post 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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Are you setting the form enctype?

Code: Select all

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