[Zope] No id with manage_addFile()

Roger Ineichen r.ineichen@projekt01.ch
Fri, 26 Apr 2002 16:24:18 +0200


Knows sombody why the id is '' (empty) and the funktion not work?

I send a file with a form:
-----------------------------
<form action=3D"addFile" method=3D"post" =
enctype=3D"multipart/form-data">
<input type=3D"file" name=3D"file">
<input type=3D"submit" value=3D"upload">
</form>

To the python method:
---------------------
def addFile(self,file):
  "This method adds a file"
  # create the file
  self.manage_addProduct['OFSP'].manage_addFile(id=3D'', title=3D'',
file=3Dfile)

  # redirect to main page
  return self.REQUEST.RESPONSE.redirect(index_html, url_quote(message)))


The error is:
-------------
The id "" contains characters illegal in URLs.


Mit freundlichen Gr=FCssen
Roger Ineichen
___________________________

Projekt01 GmbH
www.projekt01.ch
Langackerstrasse 8
6330 Cham
phone  +41 (0)41 781 01 78
mobile +41 (0)79 340 52 32
fax    +41 (0)41 781 00 78
email  r.ineichen@projekt01.ch
___________________________
END OF MESSAGE=20