3 Feb
2005
3 Feb
'05
7:28 p.m.
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