[Zope-dev] problems uploading files with internet explorer
Pawel Logatschev
pawel@beehive.de
Fri, 11 Jun 1999 18:55:19 +0200 (CEST)
hello,
i have problems uploading files with internet explorer, although it works
perfectly fine with netscape. here is the code:
def update(self, image=None, REQUEST=None):
if image1 == None:
items['image'] = ''
else:
headers = hasattr(image, "headers") and image1.headers or
None
items['image'] = (headers is None) and image or
image.read()
when a file is uploaded items['image'] contains it's name, instead of it's
contents.
i hope someone can help me solve this problem.
regards,
pawel
PS: the whole thing does not work when stripping of the part with
"headers"