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
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
--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.
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"