I have a project I'm working on where people with the proper authorization will be permitted to upload files (Zip files or possibly folders) into a holding place on my Zope server. The thing is this needs to be done via the web, not FTP or by logging directly into the content management interface. After searching zope.org the only thing I came up with that was even close was the ZImporter, which is just for importing the .zexp or .xml files back into Zope. I could use a database, but it seems like such overkill to have one running (And to have to maintain it) for someone to upload a file every once in awhile and the file wouldn't even end up staying in the database. Ultimately the goal is to have a web interface that only certain people can access and someone will just place their file in the upload area and then never see where it goes or have to worry anything at all about learning Zope or having FTP. Is this doable easily and I'm just missing something? Or maybe a Product that I haven't found does this...I'm mainly fishing for people's opinions on what would be the easiest and least painful solution to this. Thanks so much! __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com
Karen E. Roth wrote:
worry anything at all about learning Zope or having FTP. Is this doable easily and I'm just missing something?
Yup, try adding a 'File' object from the ZMI. Sounds like exactly what you want. Now, create a ZPT with a form in it. Put a file upload box on that form. Set the action of the HTML form to be the name of the python script you're about to create :-) Create a python script to handle the form submission. This should call something like manage_addFile on the object you want to store the file in, with the file from the REQUEST. It should then return the appropriate form, probably the ZPT you created above... cheers, Chris Or maybe a Product that I haven't found does this...I'm mainly fishing for
people's opinions on what would be the easiest and least painful solution to this. Thanks so much!
__________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.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 (2)
-
Chris Withers -
Karen E. Roth