I have 2 controllers for doing uploads: one is a REST target and one uses SQLFORM. Is there an easy way to get the actual size of the POST contents in the SQLFORM version? I tried
request.body.seek(0,os.SEEK_END) upsize = request.body.tell() but that seems to get an inflated count (headers, maybe?). In the REST version, I do data=request.body.read() upsize= len(data) Is that what I should use with SQLFORM, or is there something with the information already in hand? Thanks /dps -- 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.

