Hi and thanks, This code worked for me: <dtml-call expr="doku['test'].manage_upload(file=filename)"> This didn't work: <dtml-call expr="doku[test].manage_upload(file=filename)"> -> An error occured. cu, Frank Paul Zwarts schrieb:
Ooops,
Here is my code for you to compare. This DOES work:
<dtml-call expr="linkImage[aFolder].manage_upload(id=fileName, file=REQUEST['image'])">
Cheers, Paul Zwarts
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Frank Löffler Sent: Thursday, November 15, 2001 6:13 PM To: zope@zope.org Subject: [Zope] upload to localFS with form
Hi,
localFS is: doku I want to upload to a subfolder: test.
Using these codes won't work:
<dtml-with "doku.test"> <dtml-call expr="manage_addProduct['OFSP'].manage_addFile (name, file=file)"> </dtml-with>
or
<dtml-call expr="doku.test.manage_addProduct['OFSP'].manage_addFile (name, file=file)">
or
<dtml-with "doku.test"> <dtml-call expr="manage_addFile (name, file=file)"> </dtml-with>
or
<dtml-call expr="doku.test.manage_addFile (name, file=file)">
What's wrong ? In zope it works just fine but it doesn't if the subfolder is in an localFS.
What does: manage_addProduct['OFSP'] mean, got it from a another posting.
cu, Frank
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )