homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Max Upload Size
Upload Size Problems - Please Help

 2:16 pm on Sep 7, 2009 (gmt 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 Sep 7, 2009 (gmt 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 Sep 7, 2009 (gmt 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved