[Zope] FileUpload and Python Script

Tom Deprez tom.deprez@village.uunet.be
Sun, 17 Jun 2001 12:01:14 +0200


Can somebody help me on how I can get the filename of a FileUpload object in
a python script?

When using following code in a python script,

context.REQUEST['accessory_image'].filename

I get always the following error :

Error Type: AttributeError
Error Value: 'string' object has no attribute 'filename'

It's obvious that I doing something wrong, but what?

Thanks Tom.