"Sanjay" <[EMAIL PROTECTED]> writes:

>> Being unable to know how do I get the size of a file being uploaded,
>> while using FileField. Needing help.
>
> I am a novice in web apps, and need some suggestions on this. Should I
> go more specific, presenting the sample code, pl let me know...

Have you inspected what you get with widgets.FileField + either of
validators.FieldStorageUploadConverter or validators.FileUploadKeeper (you can
read the docs for these validators at the formencode package)?

Also take a look at cgi.FieldStorage since it is the base for all this (you
don't need to use it directly, but the docs will point you there).

I believe that *IF* the browser informs the size of the message it will be
inside some dictionary and not available as a property on its own...  But I
never used that information for anything... 

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to