Jump to content

file size upto 2 GB


anujgarg

Recommended Posts

2gb is large for a website upload may i ask what your allowing for uploads?

 

In your settings.php file:

 

ini_set('post_max_size', '8M');

ini_set('upload_max_filesize', '8M');

 

In your .htaccess file:

 

php_value post_max_size 8M

php_value upload_max_filesize 8M

 

change 8m to  your amount in either case

 

also this should explain it better

 

http://blog.jc21.com/2007-05-03/change-the-maximum-upload-size-with-php/

Link to comment
https://forums.phpfreaks.com/topic/143098-file-size-upto-2-gb/#findComment-750491
Share on other sites

You do it'd take the average user until, roughly, the second coming to upload a 2gb file, right?

 

Not with 60mbps Fiber Optic, or a local network.

 

But that also depends on, if non-network, the speeds his server allows :)

 

The other issue though is browsers tend to timeout after 2-5 minutes of no data being received, which will prematurely kill your script.

Link to comment
https://forums.phpfreaks.com/topic/143098-file-size-upto-2-gb/#findComment-750809
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.