Eric:

When I use the code bleow I have no problem uploading a file:

<dtml-with "folders">
    <dtml-call expr="manage_addFile(id=REQUEST['FileName'], file=REQUEST['file'])">
</dtml-with>
<dtml-call "RESPONSE.redirect('./index_html')">

However if I want to upload to another folder within the folder i get this error:

Error Type: AttributeError
Error Value: __div__

Here's the code I used:

<dtml-with "folders/folder1">
    <dtml-call expr="manage_addFile(id=REQUEST['FileName'], file=REQUEST['file'])">
</dtml-with>
<dtml-call "RESPONSE.redirect('./index_html')">

How can I or can this be done?

Thanks,
Todd

At 09:46 AM 8/17/2001 -0700, you wrote:
Todd,
Are you using a LocalFS object or trying to store the files as Zope File
objects?
Eric.

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Todd
Loomis
Sent: Friday, August 17, 2001 9:04 AM
To: eric@walstads.net; zope@zope.org
Subject: RE: [Zope] File uploader


I keep getting this error after trying this code:

Error Type: NameError
Error Value: manage_upload


At 08:50 AM 8/17/2001 -0700, you wrote:
>Hi Todd,
>Do you want to store your files on the local file system or in Zope as File
>objects?
>Either way, have a look at how the 'Add File' form works in Zope.  That'll
>show you how to get the file up to Zope.  From there you will need to move
>it to the folder you want.
>I upload to a LocalFS object ('data').