Turns out there are several hang-ups associated with large file uploads. I guess if we take it from the client end to the other.
The first place is in the html form with the
<input type="hidden" name="MAX_FILE_SIZE" value="20000000" />
The second place is in the PHP config file (php.ini), handling file uploads.
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M; default
Third is also in the PHP config file, dealing with the HTTP POST limit
; Maximum size of POST data that PHP will accept.
post_max_size = 8M; This is the default
Forth is also in the PHP config file, dealing with script execution time, (i could be wrong) but if takes 60 seconds to upload a file then script should crap out.
max_execution_time = 30 ; Maximum execution time of each script, in seconds
Fifth is in the MySQL config file (my.cnf), dealing with the 'packet size' 😕
default is not specified in the config file but is set at 1mb this means that even though a LONGBLOB datatype and has a max limit of 4GB (in MySQL v.4.0.25 (and such)). Will still only hold 1MB. You can add this line in your MySQL config file
max_allowed_packet=64M
These are just some of the stumbling blocks that i have hit in my pursuit of bigger file uploads. I have even had my browser (ie and opera so not just one) crash in trying to upload a 135MB file. And that was on my local intranet. Try maxing those values out and see if that helps also in my PHP scripts i noticed that my MAX_FILE_SIZE was defined in several places so i think that doing a
define("MAXFILESIZE", 4000000000);
should help. The next thing that comes into play is defining what exactly is a GB, MB, and KB ? and how they relate to bytes?
If you set my.cnf max_allowed_packet=64M it reports it as '67107840' . If anybody cares to try to explain that one to me.
Anyways hope that helps
edit: also view http://www.radinks.com/upload/config.php