Commit 194a7977 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#104220 by ChrisKennedy: remove arbitrary half post max size restriction on...

#104220 by ChrisKennedy: remove arbitrary half post max size restriction on maximum uploadable file size
parent afff4edd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment