Welcome to WebmasterWorld Guest from 54.167.0.111

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Max Upload Size

Upload Size Problems - Please Help

     

rajivadhy

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

5+ Year Member



Hi,

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.

Thanks
Rajiv

eelixduppy

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

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



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.

rocknbil

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

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



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month