[etwist] upgrade post max size to 200Mo until it's configurable stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 14 Apr 2010 18:24:20 +0200
branchstable
changeset 5252 9c765b1d8250
parent 5248 8f7843afb014
child 5268 b4bb59824d72
[etwist] upgrade post max size to 200Mo until it's configurable
etwist/server.py
--- a/etwist/server.py	Wed Apr 14 16:26:20 2010 +0200
+++ b/etwist/server.py	Wed Apr 14 18:24:20 2010 +0200
@@ -283,11 +283,11 @@
 from twisted.internet import defer
 from twisted.web2 import fileupload
 
-# XXX set max file size to 100Mo: put max upload size in the configuration
+# XXX set max file size to 200Mo: put max upload size in the configuration
 # line below for twisted >= 8.0, default param value for earlier version
-resource.PostableResource.maxSize = 100*1024*1024
+resource.PostableResource.maxSize = 200*1024*1024
 def parsePOSTData(request, maxMem=100*1024, maxFields=1024,
-                  maxSize=100*1024*1024):
+                  maxSize=200*1024*1024):
     if request.stream.length == 0:
         return defer.succeed(None)