I can't upload files with my 7250i. I'm using similar form and php to store uploaded files. However print_r($_FILES) prints nothing. I don't know if this is a php problem or has my gsm operator somehow disabled the possibility to upload files. However I can upload <input type="text" name="textfield"> just fine.
I am using server-side Java and com.oreilly.servlet package
for handling the image uploads.
I also had some problems in receiving files,
and I had to make small adjustment to the servlet package
so that it would be compatible with 7250i request.
There was a small compatibility problem in com.oreilly.servlet that I fixed.
The Content-Disposition has extra white space.
Somewhere in the code an extra trim was needed.
Thank you for getting back to me so quickly. Unfortunately I am using a com.oreilly.servlet package installed on a free servlet web space site called mycgiserver.com. I cannot edit MultipartParser.java line 380 !
Can you think of another way to do this ? I have attached my code if this helps.
I have another question for you if you have time....
I can successfully upload images&files using my html browser on my pc.
However when I use an emulater I get the following error:
java.io.IOException: Content disposition corrupt: Content-Disposition:form-data;name="upfile";filename="test.txt"|content-disposition:form-data;name="upfile";filename="test.txt"|-1|29
when I test this on my phone I get "Internal error in gateway".
Do you know why this error has occured? Do you have a url that I could try to upload to, to check if my phone can actually upload?