I want to upload a big file (about 80M) through the web, but it seems not working. Small file will be OK.

html file:

<input type="hidden" name="MAX_FILE_SIZE" value="128000000" />

php.ini:

file_uploads = On
upload_max_filesize = 128M
max_input_time = 60
memory_limit = 128M
max_execution_time = 30
post_max_size = 128M

httpd.conf:

LimitRequestBody 128000000

For the big file, the uploading seems stop about 10 seconds, and the file size got from php is 0.

What else do I need to change to support this big file upload? I am using php-5.3.0.tar.bz2, httpd-2.2.13.tar.bz2.

Thanks!

Yong

Hi there,
In php.ini, change both "max_execution_time" and "max_input_time" to 0. This removes the limit & lets them run indefinitely. Alternatively you could set them dynamically from inside your script using ini_set().

Thanks. These time changes fixes the problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.