[Yanel-commits] rev 41505 -
public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/communication
michi at wyona.com
michi at wyona.com
Wed Feb 11 11:56:51 CET 2009
Author: michi
Date: 2009-02-11 11:56:51 +0100 (Wed, 11 Feb 2009)
New Revision: 41505
Modified:
public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/communication/HttpRequest.java
Log:
warning and TODO added re maximum file upload size
Modified: public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/communication/HttpRequest.java
===================================================================
--- public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/communication/HttpRequest.java 2009-02-11 10:31:11 UTC (rev 41504)
+++ public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/communication/HttpRequest.java 2009-02-11 10:56:51 UTC (rev 41505)
@@ -60,7 +60,10 @@
DiskFileItemFactory factory = new DiskFileItemFactory();
// Set factory constraints
- factory.setSizeThreshold(64000);
+ // TODO: Do not hardcode the maximum size
+ int maxSize = 64000;
+ log.warn("The max upload size is " + maxSize);
+ factory.setSizeThreshold(maxSize);
factory.setRepository(new File(System.getProperty("java.io.tmpdir")));
//Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
More information about the Yanel-commits
mailing list