upload large files using php, apache upload large files using php, apache apache apache

upload large files using php, apache


I'd also check the max input time and script execution time. They're both currently set to 300 seconds (5 minutes). That would mean the user has to upload 150 mb (1200 mega-bits) in 300 seconds. That means the end user would need a solid and consistent 4mbps connection (1200 / 300 = 4) to upload that file in the allotted time.

I would recommend something similar to these settings:

file_uploads = Onupload_tmp_dir = "/your/tmp/dir"upload_max_filesize = 150M ; You may want to bump this to 151M if you have problems with 150 mb filesmax_execution_time = 1200 ; 20 minutes, which is a 150 mb file at 1mbpsmax_input_time = 1200


If you are using a shared server and want to upload large files, create a php.ini file and write the following code into it and put it in the folder where you are uploading the files, i.e. the destination of your uploaded files.

 upload_max_filesize = 150M post_max_size = 150M memory_limit = 512M max_execution_time = 1200 


here is some good info about uploading files in PHP

Upload files PHP info

Or you could also read up on it here using an Java applet that uploads the file in chunks.Search for Jupload

php/Apache ConfigYou will need to change the value of both upload_max_filesize and post_max_size to the largest filesize you would like to allow. Then restart apache and everything should work.