Re: [Zope-dev] FileUpload questions

2003-08-14 Thread J Cameron Cooper
I have been looking at the FileUpload class defined in HTTPRequest.py but am still a little confused about how it works. When a form is submitted with an input type=file ..., where are the contents of the uploaded file stored? Is it automatically stored in the ZODB, or is it stored in

Re: [Zope-dev] FileUpload questions

2003-08-14 Thread Jamie Heilman
Toby Gustafson wrote: When a form is submitted with an input type=file ..., where are the contents of the uploaded file stored? Is it automatically stored in the ZODB, or is it stored in memory until some other code (like that in Image.py) stores it? Its stored in a temporary file as

[Zope-dev] FileUpload questions

2003-08-14 Thread Toby Gustafson
Hello, I have been looking at the FileUpload class defined in HTTPRequest.py but am still a little confused about how it works. When a form is submitted with an input type=file ..., where are the contents of the uploaded file stored? Is it automatically stored in the ZODB, or is it stored

Re: [Zope-dev] FileUpload questions

2003-08-14 Thread Declan Shanaghy
Its handy enough to implement. lets say your file parameter is called 'file'... #os_uploadCacheImage is a Zope External method. if request.has_key('file'): context.os_uploadCacheImage(context.PATH_CACHE, request['file'], request['file'].filename) #co-responding implementation for zope