[Zope] Zope products and uploading files
Stephen Rudd
stephen.rudd at btk.fi
Thu Feb 3 09:49:43 EST 2005
Dear all
At the moment I am creating a small zope product that is the web front end
to a java pipeline. I have a form where I can upload a file and I can
successfully place it anywhere within the Zope database by using
context.manage_addFile(name,file,title)
The file that is uploaded does not really want to be in zope - it should be
somewhere on the local filesystem - I have tried to read the file contents
back to the filesystem - but the product dies with a
Attribute Error :: __call__
Or
POSKeyError 000000000267f or something like it.
I could use Java to extract the contents of the URL but this seems quite
silly.
I know that I am doing it the hard way - could someone kindly suggest to me
an elegant way to write the File object directly to the local disk? Any help
would be very gratefully received.
Thanks
Stephen
More information about the Zope
mailing list