[Zope] Zope products and uploading files

Dieter Maurer dieter at handshake.de
Thu Feb 3 14:28:56 EST 2005


Andreas Pakulat wrote at 2005-2-3 16:29 +0100:
> ...
>Hmm, the REQUEST has a FileUpload Object (or something similar) for
>each file, this in turn has a member "data", which holds the actual
>data. So you could just take that and pass it to a normal python file 
>I/O function (I don't know how these are called)...

Where have your seen a "data" member of a
"ZPublisher.HTTPRequest.FileUpload" object?

In fact, "FileUpload" objects do not have such an attribute
(Zope's "File" objects have). You can use file methods
("read", "seek", ...) to access the content of "FileUpload" objects.

-- 
Dieter


More information about the Zope mailing list