Yes, with a "but". The default maximum body size is indeed 100MB:
>>> import cherrypy
>>> cherrypy.server.max_request_body_size
104857600
>>> _ / (1024 ** 2)
100
But: you can't specify that per handler. It's per-server. If you wanted
different per-handler limits, you'd either have to make your own
subclass of cgi.FieldStorage and override its read_* methods, or wrap
cherrypy.request.rfile in a SizeCheckWrapper (like wsgiserver does)
yourself. If you know you're only ever going to be using wsgiserver, a
hacky way would be to just change rfile.maxlen inside your handler, and
set request.process_request_body to False. I just added an example of
that in http://www.cherrypy.org/changeset/2119.
Robert Brewer
fuma...@aminus.org