small fixes here and there
[mir.git] / source / mir / misc / WebdbMultipartRequest.java
index cc99913..5b1871f 100755 (executable)
@@ -26,7 +26,8 @@ public class WebdbMultipartRequest
   public WebdbMultipartRequest(HttpServletRequest theReq) throws IOException
   {
     req=theReq;
-    mp = new MultipartParser(req, 1024*20480); // maximum eight megabyte
+    int maxSize = Integer.parseInt(MirConfig.getProp("MaxMediaUploadSize"));
+    mp = new MultipartParser(req, 1024*maxSize);
     requestList = new ArrayList();
     _evaluateRequest();
   }
@@ -121,5 +122,5 @@ public class WebdbMultipartRequest
       }
     } // while */
   }
-  
+
 }