[Zope] uploading files

ainis ainis@mindless.com
Thu, 05 Aug 1999 12:33:44 +0200


Anthony Baxter wrote:
> 
> >>> ainis wrote
> > How should file uploading be accomplished in zope?
> > I mean I need to create a special form so that users could upload files
> > to some zope folder.
> 
> take a look at the form used when you create an object of type
> 'file' in the management interface...
> 
> Anthony

I already did that. It looks something like that:

<FORM ACTION="manage_addFile" METHOD="POST"
      ENCTYPE="multipart/form-data">
......skipped......
  <INPUT TYPE="TEXT" NAME="id" SIZE="40">
......skipped......
  <INPUT TYPE="TEXT" NAME="title" SIZE="40">
......skipped......
  <INPUT TYPE="file" NAME="file" SIZE="25" VALUE="">
......skipped......
<INPUT TYPE="SUBMIT" VALUE=" Add ">


The problem is that action manage_addFile returns me to zope management
interface but I do not want users to go there.