think u can makeup it with js on client side. I mean, use custom form and validated the upload size on client side:
http://stackoverflow.com/questions/1601455/how-to-check-file-input-size-with-jquery hope this help u out. 2017-01-22 18:22 GMT-05:00 <[email protected]>: > Does anyone know how to limit the size of an upload without accepting > the entire upload and then measuring its' size? I'm transferring data > in the body of an http request. However I want to place a limit on its' size > so that the server can't be attacked by someone maliciously sending > huge files to the server. > > Is there a way to do this in Web2Py? Or is this something that should > be done in the configuration of the web server (in this case I'm just > using the out-of-the-box Rocket server). > > I believe someone asked this question before, about 5 years ago, > but I couldn't find any answer to it. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- Yoel Benítez Fonseca http://redevil.cubava.cu/ $ python -c "import this" -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

