[Zope] upload to localFS with form

Paul Zwarts paz@oratrix.com
Thu, 15 Nov 2001 18:36:24 +0100


Ooops,

Here is my code for you to compare. This DOES work:

<dtml-call expr=3D"linkImage[aFolder].manage_upload(id=3DfileName,
file=3DREQUEST['image'])">


Cheers,
Paul Zwarts


-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of
Frank L=F6ffler
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=3D"manage_addProduct['OFSP'].manage_addFile (name,
file=3Dfile)">
</dtml-with>

or

<dtml-call expr=3D"doku.test.manage_addProduct['OFSP'].manage_addFile
(name, file=3Dfile)">

or

<dtml-with "doku.test">
<dtml-call expr=3D"manage_addFile (name, file=3Dfile)">
</dtml-with>

or

<dtml-call expr=3D"doku.test.manage_addFile (name, file=3Dfile)">

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 -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )