Here you go.

<dtml-call "PARENTS[0].manage_addFile(thisID,myFile,thisTitle)">

This uploads a file in the current working directory.

thisID [ the id ] and thisTitle [ the Title ] are optional, and I don't know if you 
have to put '' double-apostrofies for the ID then.
You try.




----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 6:29 PM
Subject: [Zope] Any examples of use of manage_addFile()?


> I want to create a user-interface so that users can upload files to my Zope
> site.  I have done this with DTMLDocuments, however I don't quite understand how
> to get the file itself into the Zope site via ...
> 
> self.manage_addProduct['OFSP'].manage_addFile()
> 
> ..that is in Python.
> 
> I looked through the HOWTO's but didn't find anything.  Does someone have an
> example of a Form/DTMLMethod/Python script that does this sort of thing?
> 
> Thanks in advance,
> 
> Ron
>  ./.
> 
> 
> 
> _______________________________________________
> Zope maillist  -  [EMAIL PROTECTED]
> 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 )
> 


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to