I've found this tip from Massimo on checking file upload progress:
In the upload form add
<input type='hidden' name='X-Progress-ID' value='test'/>
def upload_page():
...
length_bytes = cache.ram('X-Progress-ID:test:length',None,0)
uploaded_bytes = cache.ram('X-Progress-ID:test:uploaded',None,0)
...
>
> However, I'm not certain how to go about using that to cut off the file
upload once it reaches some size limit. Can anyone help me out on this?
Thanks.
--
---
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/groups/opt_out.