[Zope] File Upload

Laurie Nason lnason@bcm.tmc.edu
Thu, 30 May 2002 15:22:51 -0500


Hi everyone,
I have 2 questions:

The lab that I work for will routinely have to upload files via HTTP of
between 2MB and 40MB. We will be saving these as External files but this is
not the problem. We can upload 2MB files pretty quickly (~3 seconds), but
trying to upload an 8MB file takes about 50 seconds. This is true no matter
whether I upload the file as an external one or just as a regular File.
Therefore I am guessing that the problem comes from Zope's handling of large
files and the definite probability that it is loading the file into memory
first before saving it. I have seen other people who have had similar
problems:
http://lists.zope.org/pipermail/zope/2001-July/094581.html
http://lists.ozzope.org/pipermail/ozzope/2001-October/000116.html
but there don't seem to be any solutions posted. Is there any way of
streaming the file into Zope?

My second problem comes with the file once it is uploaded - I know that Zope
adds a couple of extra properties to an uploaded file, but is there any way
I can get at the original file - maybe removing the properties so that I can
pass it into another program for processing?

Laurie


Laurie Nason
Scientific Programmer
National Center for Macromolecular Imaging
Houston TX USA