Hi all, I'd like to thank everyone with their help. I finally got it going with the following code: <dtml-call expr="AdminImgMnt.manage_upload(id=_.str(pid) + '.jpg', file=REQUEST['imgfile'])"> There is some magic at work here i dont quite understand yet, but it seems to work so, leave it at that for now.... I think the difference was two things: a) i had never used id= and file= because it always gave me TypeErrors. b) i used manage_addImage and not manage_upload.... is there really a big difference in context to LocalFS? But again, it it works, fry some bigger fish.... Paz Jens Vagelpohl wrote:
This is incorrect. LocalFS also allows you to write files to the directory that you are "viewing" through the LocalFS object, provided the user your zope process runs under has the privilege to write into that directory.
i know this won't help non-technical people, but i have found the code for LocalFS to be very clean, well-written and self-explanatory and have done a few python utilities based on it without ever needing more documentation than the code itself.
jonothan has put up a page with an overview over LocalFS capabilities right here:
http://www.zope.org/Members/jfarr/Products/LocalFS/LocalFS-0.10.1.tgz/info
hope that helps
jens
on 2/23/01 6:22, Cyril Elkaim at cyril.elkaim@free.fr wrote:
How do I store a file in LocalFS?
Don't. LocalFS is a VIEW of your file system. Simply move your file in the directory managed by LocalFS and you are done.
Cheers and excuse today's hangover moodiness,
You're not alone, don't give up :-)
Cyril
_______________________________________________ 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 )