Re: [web2py] Check upload file size before actual file data uploading

2012-10-02 Thread Johann Spies
On 2 October 2012 04:20, Exeption vvm1...@gmail.com wrote: Hi, Already have asked herehttp://stackoverflow.com/questions/12668310/check-upload-file-size-before-actual-file-data-uploading, but no reply. I will duplicate my question here: In my web2py controller I'm accessing file data

Re: [web2py] Check upload file size before actual file data uploading

2012-10-02 Thread Massimo Di Pierro
You can try this: 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) ... they are updated during

[web2py] Check upload file size before actual file data uploading

2012-10-01 Thread Exeption
Hi, Already have asked herehttp://stackoverflow.com/questions/12668310/check-upload-file-size-before-actual-file-data-uploading, but no reply. I will duplicate my question here: In my web2py controller I'm accessing file data like: vfile = request.post_vars.video.file But how can I check