[Zope] Re: store external documents to Zope
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Mon, 18 Nov 2002 13:33:05 +0100
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