[Zope] Any examples of use of manage_addFile()?

Peter Bengtsson peter@grenna.net
Fri, 13 Oct 2000 22:29:45 +0100


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: <complaw@hal-pc.org>
To: <zope@zope.org>
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  -  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 )
>