[Zope] Python question

Andreas Jung lists at andreas-jung.com
Mon Nov 8 12:16:22 EST 2004



--On Montag, 8. November 2004 11:10 Uhr -0600 Laura McCord 
<Laura.McCord at doucet-austin.com> wrote:

> I am writing a Python Script and I am trying to get the size of an
> uploaded file. Does anyone know what I should use? I thought that I
> could use len() but I was getting an error using it.

data = uploaded_file.read()
print len(data)

*must* work.

-aj


More information about the Zope mailing list