Commit 100278 by drumm

#104220 by ChrisKennedy: remove arbitrary half post max size restriction on maximum uploadable file size.
Backport by Bart Jansens.

--- includes/file.inc   2008/01/07 01:00:22     1.90.2.3
+++ includes/file.inc   2008/02/11 05:45:48     1.90.2.4
@@ -728,8 +728,7 @@
 
   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;
No votes yet