Hi everyone, I'm asking this question again because I still haven't been able to work it out for myself. I'd like to have a button or link on a page that, when pressed, presents the user (the Manager actually) with a dialog to upload a new version of a file object that's in that directory. I presume that the manage_upload method would do the trick, but I can't figure out how to use it. The file object I want to update is called 'Bookmark.htm'. I'm trying to make it easy for our school librarian to distribute our standard bookmarks to all of the machines in the building. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
On Mon, 6 Mar 2000, Timothy Wilson wrote:
Hi everyone,
I'm asking this question again because I still haven't been able to work it out for myself. I'd like to have a button or link on a page that, when pressed, presents the user (the Manager actually) with a dialog to upload a new version of a file object that's in that directory. I presume that the manage_upload method would do the trick, but I can't figure out how to use it.
You didn't say what problems, if any, you are having, so I'm just going to take a shot in the dark. By choosing a DTML Document, clicking on the Upload tab, and viewing the source, I believe you need something like: <FORM action="manage_upload" method="POST" enctype="multipart/form-data"> <INPUT type="file" name="file" size="25" value=""><BR> <INPUT type="submit" value="Change"> </FORM> Make sure you don't leave out the enctype attribute or things will be unhappy. Let me know what, specifically, doesn't work if you continue to have problems. I'll do my best to help.
-Tim
--Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:jeff@goingv.com Going Virtual, L.L.C. http://www.goingv.com/
Look at the management form that you see when you create a File object, and do what it does, only in the context of your user interface. -- Loren ----- Original Message ----- From: Timothy Wilson <wilson@visi.com> To: Zope listserv <zope@zope.org> Sent: March 06, 2000 11:48 AM Subject: [Zope] using manage_upload
Hi everyone,
I'm asking this question again because I still haven't been able to work it out for myself. I'd like to have a button or link on a page that, when pressed, presents the user (the Manager actually) with a dialog to upload a new version of a file object that's in that directory. I presume that the manage_upload method would do the trick, but I can't figure out how to use it.
The file object I want to update is called 'Bookmark.htm'. I'm trying to make it easy for our school librarian to distribute our standard bookmarks to all of the machines in the building.
-Tim
-- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
_______________________________________________ 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 )
participants (3)
-
Jeff K. Hoffman -
Loren Stafford -
Timothy Wilson