我必须在服务器端更改以启用chunkedMode = true?

I am currently working on an Android app made with the PhoneGap framework. The app captures a video which is uploaded to a server. I used to set the chunkedMode to FALSE, and for files smaller than 10MB everything works fine. For files bigger than 10MB I get an Out of Memory Exception. To fix that I changed to chunkedMode = true, but right now I always get an connection error (error code 3).

Do I have the change something on the server to accept the chunked mode?

The server is an CentOS server with Apache 2/HTTP 1.1. I use the following line in the PHP (server side) script:

move_uploaded_file($_FILES['file']['tmp_name'], $target)

I really hope someone can help me with this problem.

Thanks!

First thing to check is what your max upload size is in your php.ini file:

upload_max_filesize = 10M

If you are not using PHP5 you will need to upgrade as PHP4 does not support chunked mode.

As far as I know most Apache web severs already have chunked mode turned on. One dev was using Nginx as a web server and had to install this module.

http://wiki.nginx.org/HttpChunkinModule

Mind you there wiki seems to be down right now.