Re: [Zope] Get uploaded file size

2006-08-03 Thread Dieter Maurer
AnThu Nguyen wrote at 2006-8-2 10:13 -0700: ... 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. If context.REQUEST.file is the

[Zope] Get uploaded file size

2006-08-02 Thread AnThu Nguyen
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. TIA, AnThu ___ Zope maillist

Re: [Zope] Get uploaded file size

2006-08-02 Thread Andreas Jung
--On 2. August 2006 10:13:17 -0700 AnThu Nguyen [EMAIL PROTECTED] 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.

Re: [Zope] Get uploaded file size

2006-08-02 Thread AnThu Nguyen
Roberto, This is perfect - exactly what I needed! Thanks, AnThu Roberto Benitez wrote On 08/02/06 01:50 PM,: Try the following: def PythonScript1(afile=None): ''' read file info afile is name of HTML INPUT TAG HTML FORM AS FOLLOWS FORM ACTION="" METHOD="POST"