Page 1 of 1

file size limit for upload through html

Posted: Tue Feb 22, 2005 2:57 pm
by Burrito
I have run into an issue in the past (with cold fusion) where a user tried to upload a file from an HTML form that was ~10mb in size. the action page of the form died a horrible death and after some researching I finally found out that windows server 2000 (or perhaps IIS) does not allow for files larger than 5mb to be uploaded. I am making a file codification system here and some of the users will be uploading some extremely large files so clearly my 5mb limit won't fly.

I have, *obviously* windows 2000 with IIS 5 running. I chatted with Feyd about this a while back and he indicated that I might be able to change something in my php.ini file that would allow for larger files. I'm just not certain if my prohibiting factor is php or IIS (windows 2000).

if anyone has run into this and found a solution, I'd me most grateful to hear it.

thx,

Burr

Edit: I did find this in php.ini and will test as soon as I can build a form page

; Maximum size of POST data that PHP will accept.
post_max_size = 50M

Posted: Tue Feb 22, 2005 3:05 pm
by smpdawg
PHP could be the source of the problem.

I ran into the file upload problem will working on a clients web application. They needed to upload files that could be up to 80M but the script would just die. The first thing that was changed was upload_max_filesize but the script still died That is when we changed post_max_size and it worked. It seems that from PHP's POV the file was sent via a POST so it was limited by that flag.

Even though this post is about IIS, Apache does have a limit of just over 512K that is sometimes imposed by the configuration. If anyone has this problem, PM me and I will look it up in my conf file.