[Zope] uploading files

Andreas Kostyrka andreas@mtg.co.at
Thu, 5 Aug 1999 11:58:02 +0200 (CEST)


On Thu, 5 Aug 1999, ainis wrote:

> 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.
Then use <dtml-call manage_addFile> in some method of yours :).

Andreas
--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +43/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA