summaryrefslogtreecommitdiff
path: root/includes/file.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-08 13:13:13 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-08 13:13:13 +0000
commit194a7977f3fe721e81bacd4d43c59dd110936982 (patch)
tree092f3a008745ff82d7765536a739dafcc00671e5 /includes/file.inc
parentafff4edd2ea55fa6d50881749d867abaa087ffb2 (diff)
downloadbrdo-194a7977f3fe721e81bacd4d43c59dd110936982.tar.gz
brdo-194a7977f3fe721e81bacd4d43c59dd110936982.tar.bz2
#104220 by ChrisKennedy: remove arbitrary half post max size restriction on maximum uploadable file size
Diffstat (limited to 'includes/file.inc')
-rw-r--r--includes/file.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/file.inc b/includes/file.inc
index a7ba5fb7c..485a6452c 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -968,8 +968,7 @@ function file_upload_max_size() {
if ($max_size < 0) {
$upload_max = parse_size(ini_get('upload_max_filesize'));
- // sanity check- a single upload should not be more than 50% the size limit of the total post
- $post_max = parse_size(ini_get('post_max_size')) / 2;
+ $post_max = parse_size(ini_get('post_max_size'));
$max_size = ($upload_max < $post_max) ? $upload_max : $post_max;
}
return $max_size;