NYCPHP Meetup

NYPHP.org

[nycphp-talk] Cannot debug issue with uploading a large file

Dan Cech dcech at phpwerx.net
Thu Feb 8 12:03:30 EST 2007


Randal Rust wrote:
> I have a 10MB file that needs to be uploaded through a form. Seems
> simple enough. Just modify php.ini to allow larger files, or user
> ini_set().
> 
> The problem is that when I select this file and try to upload it,
> nothing get passed in the $_REQUEST array, so I can't figure out what
> is going on here.
> 
> Basically, I have this:
> 
> if(isset($_POST['save'])){
> //process form
> echo 'form is submitted';
> }
> 
> If I select a smaller file, it prints the message. If I select the
> larger one, no luck.
> 
> Any ideas?

There is also a limit in Apache

http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody

Dan




More information about the talk mailing list