store external documents to Zope
Hi first of all: I am a newbie to Zope, so please be patient with me. I want to save to Zope an external document automatically and for that I thought about a simple mechanism like this: The user got in his interface a send button to insert his document to the Zope portal. After pushing the send button his file will be added the the Zope source and readable in Zope. So how can I add a new document to the Zope portal without using the Zope interface ? Where do I have to add the document source to Zope ? Thank you a lot in advance ... J.
Jessica Niewint wrote:
I want to save to Zope an external document automatically and for that I thought about a simple mechanism like this: The user got in his interface a send button to insert his document to the Zope portal. After pushing the send button his file will be added the the Zope source and readable in Zope.
Hi, maybe you can start with something like this. Add a DTML-Method (!!! not a DTML-Document) with: <dtml-var standard_html_header> <form action="manage_addFile" method="post" enctype="multipart/form-data"> <p>Please enter an id: <input type="text" name="id" size="25" value=""></p> <p>Please select a file: <input type="file" name="file" size="25" value=""></p> <input class="form-element" type="submit" value="Upload File"> </form> <dtml-var standard_html_footer> If AnonymousUsers should be able to add files, then you have to set the Proxy-Role to Manager. cheers, maik -- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
Thanks a lot for the quick answerers, I will have a closer look at the example of the File Library and the DTML Method... J.
participants (2)
-
Jessica Niewint -
Maik Jablonski