[Zope] File Uploads et al

Samir Mishra SamirMishra@cbuae.gov.ae
Sun, 2 Feb 2003 10:40:04 +0400


Morning all,

I've only just installed Zope, so trying to find my way around. 

I'm evaluating Zope and thus far I'm impressed.

But, as is usually the case, I have a couple of question. We have a
requirement to allow users to upload a large number of files on a regular
basis. These files are created by an application we wrote a long time ago.
And the file names and the number of files vary.

1) When a user uploads a file, where are the file contents stored in Zope?
I'm assuming the ZODB database.

2) How can I provide the user the option of storing uploaded files to a
directory on the server (directory defined by manager, may be user specific,
or common to all or group), with a link to (or object representing) the file
in the user's folder?

3) What are the security implications of the above scenario?

4) Or, as in (2), alternate storage is chosen automatically - if the file is
larger x kb, it's stored in an alternate location/storage. Which Python
script in Zope handles uploads?

5) Ideally, I'd like to be able to store the file in a database that's
capable of handling BLOBs, such as Berkeley. Any suggestions?

6) Sometimes, we need to upload the contents of a directory, and not just an
individual file. The exact contents of the directory can vary. Any easy way
of doing this?

Again, any & all suggestions will be appreciated.

Thanks.

Regards,
Samir Mishra