2 Aug
2006
2 Aug
'06
5:12 p.m.
--On 2. August 2006 10:13:17 -0700 AnThu Nguyen <Anthu.Nguyen@Sun.COM> wrote:
Hi,
I'm trying to get the size of a file uploaded via an HTML form before it's written. "context.REQUEST.file" only accesses the file name, not the content. How do I read the contents? Any help will be much appreciated.
Read the data into a string and determine the length of the string. -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting