[Zope] upload file to a localFS directory

Fabien Nkundabagenzi fnkunda@africamuseum.be
Wed, 2 Oct 2002 08:32:58 +0200


You can use a Python expression to do it.
Something like <dtml-call "localFSdirectory.manage_upload(filename)">
It worked for me.

Fabien.

----- Original Message -----
From: "Andy McKay" <andy@agmweb.ca>
To: "michael.taņag" <almightymike@yahoo.com>; <zope@zope.org>
Sent: Tuesday, October 01, 2002 6:35 PM
Subject: Re: [Zope] upload file to a localFS directory


> Because localfs wasnt designed to do that. Local fs folders are not
standard
> folders and do not behave like it.
> --
>   Andy McKay
>   www.agmweb.ca
>
>
> ----- Original Message -----
> From: "michael.taņag" <almightymike@yahoo.com>
> To: <zope@zope.org>
> Sent: Tuesday, October 01, 2002 2:37 AM
> Subject: [Zope] upload file to a localFS directory
>
>
> >
> > Hi! I was wondering why I can't upload a file inside a localfs
directory?
> What it does is instead of uploading the file inside the localfs
directory,
> it places it outside. But when I changed the localfs directory to a normal
> folder, files are uploaded inside the folder.
> >
> > Can you give any ideas on this so I could upload a file to a localFS
> directory?
> >
> > context.alocalfsdir.manage_addFile() # doesn't work properly
> >
> >
> >
> > Thanks!!
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > New DSL Internet Access from SBC & Yahoo!
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )