[Zope] Accessing file object to upload in an external method

Dieter Maurer dieter at handshake.de
Thu May 26 18:24:35 EDT 2005


Simon ALEXANDRE wrote at 2005-5-26 10:37 +0200:
> ...
>Here is the line added in the external method: 
>
>self.dir_filesystem.manage_upload(file=self.zipfile)
>
>zipfile is the name of the file in the html form (File <INPUT TYPE="file"
>NAME="zipfile" SIZE="25" VALUE="">)

As all request parameters (such as form controls), it is
part of the request object.

Therefore, you access it with "self.REQUEST['zipfile']".

-- 
Dieter


More information about the Zope mailing list