[Zope] filesize of uploaded file

Peter Bengtsson mail@peterbe.com
Mon, 16 Jul 2001 10:19:54 +0200


I know this question's been posted before but I can't find it at nipltd.com
so I post it again.

How to find the size of a uploaded file?

I've tried:

 print getattr(REQUEST['file'],'size')
and
 print getattr(REQUEST['file'],'filesize')


This works fine though
 print getattr(REQUEST['file'],'filename')


Cheers, Peter