Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Max Upload Size

Upload Size Problems - Please Help

2:16 pm on Sep 7, 2009 (gmt 0)

New User

5+ Year Member

joined:July 7, 2009
posts: 26
votes: 0


How do I increase the max upload size .
Right now i changed the value in php.ini from 200 to 250 mb
However it is not working is there any other modification needed.

Changed the Max upload size and Post max size variables in php.ini
However still no luck , 150mb files are ok as that is max as per upload window.
However php.ini showed 200mb which I changed but when I try to upload a file
of 226mb it tries for 5-10 minutes then get a connection reset in Firefox.


4:24 pm on Sept 7, 2009 (gmt 0)

Senior Member

joined:Nov 12, 2005
votes: 0

There are a few other directives to look at. Take a look at the following:

Are you getting any errors when you upload the file? Also, are you checking the file errors [us3.php.net] to see more information about the upload.

Try to work with that information and see what you can conclude. I would check the error details first, though, before you start changing all your directives. Those are some large files you are uploading, as well. Personally for files that large I would set up something else, like an FTP server, for example.

Anyway, best of luck.

5:22 pm on Sept 7, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
votes: 0

With file sizes that large I'm presuming it's video. A few other notes; you can alter the upload limits per directory with .htaccess as well, it's the same thing you're doing in php.ini. This is a *little* more secure as it's not doing it system wide.

But the real problem, I think, will be that many users' browsers will just time out with files this huge. You might consider another approach, one that allows the upload to be managed as a background process, returning an immediate response to the browser. Among other things, this will prevent users from re-initiating the process and putting unnecessary load on your server.

Have a look at pcntl_fork() [us3.php.net]. This is the PHP implementation of fork() that spawns a child process; this is your upload. The parent process then can return an immediate response to the browser and you can write a function that directs to a page that "monitors" the progress of the child process. When the process dies, the upload is done.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members