On 2 October 2012 04:20, Exeption <vvm1...@gmail.com> wrote:

> Hi,
>
> Already have asked 
> here<http://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 Content-Length *before* actual file data will be
> uploaded? It is not a good idea for me to check file size after file
> already uploaded.
>
> NOTE: I'm not using FORM() helper and database but just raw regular file
> upload. Is there any way to hook into web2py internals to do what I need?
>
>
I suspect you will have to use javascript to do this.  I have just search
for 'javascript file size before upload'  and saw answers that should not
be too difficult to use in your case.

Regards
Johann

-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

-- 



Reply via email to