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
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
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
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