PHP - Maximum Total Upload Size?
Yes. There are (as far as I can remember) three or so configuration settings which will affect upload size restrictions:
upload_max_filesize
, which sets an upper limit on the size of uploaded filespost_max_size
, which limits the total size of posted data, including file datamax_input_time
, which restricts the length of time the script is allowed to process input data, including posted values
upload_max_filesize
is a limit on each individual file; however, post_max_size
is an upper limit on the entire request, which includes all the uploaded files.
Different hosting environments will have these values set differently, which may affect your abilities upon deployment.
The upload limits are set through php ini. You can try get them like so:
$post_max_size = ini_get('post_max_size');
$upload_max_filesize = ini_get('upload_max_filesize');
It's a setting in php.ini. You can look in the output of php info for the field labeled "upload_max_filesize". To get a php info page, create a php file with the following code:
<?php phpinfo(); ?>
This post at php.net gives you sample code to get that information, and the rest of the page is a treasure trove of php configuration options.