changeset 959:1b95dcd0b566

Be more lenient about minimum size of uploaded files.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 28 Nov 2014 22:19:51 +0200
parents fb945b968827
children af501f585941
files msite.inc.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/msite.inc.php	Fri Nov 28 20:21:28 2014 +0200
+++ b/msite.inc.php	Fri Nov 28 22:19:51 2014 +0200
@@ -1218,8 +1218,8 @@
   if ($fileSize > $maxFileSize)
     stError("File size ".$fileSize." exceeds FAPWeb's size of ".$maxFileSize." bytes for ".$uploadType." uploads.");
 
-  if ($fileSize < 128)
-    stError("File size ".$fileSize." is less than 128 bytes. This can't be right.");
+  if ($fileSize < 16)
+    stError("File size ".$fileSize." is less than 16 bytes. This can't be right.");
 
   switch ($_FILES[$index]["error"])
   {