hello,

I want to store the actual length of each uploaded file in my table.
I've seen around the forum people using request.env.content_length for
that.
Is there an alternative interface to that information?

Richard


On Jul 15, 11:44 pm, mdipierro <[email protected]> wrote:
> No there s no problem with this. You should not determine the size of
> the file with request.env.content_length, you should use
>
> ... Field('name','upload',requires=IS_LENGTH(10000))
>
> where 10000 is the max lenght.
>
> On Jul 15, 7:06 am, Richard <[email protected]> wrote:
>
> > hello,
>
> > the current database design of our application will require the user
> > to upload 2 files in a single form. Is there any problem with this?
> > One thing I thought of is we could no longer determine the size of the
> > file with request.env.content_length.
>
> > Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to