[Zope] Reading uploaded file headers

Dieter Maurer dieter@handshake.de
Fri, 20 Apr 2001 21:08:18 +0200 (CEST)


Greg Green writes:
 > I am trying to read the header of a file uploaded in a REQUEST. I can
 > get the filename and the data, but reading the headers gets me an
 > authorization failure.
This part of ZPublisher.HTTPRequest has not yet been adapted
to the Zope 2.2 security policy.
Something for the Collector....

It is very easy to fix. "FileUpload" objects must get
an "__allow_access_to_unprotected_subobjects__=1".


Dieter