[Zope] upload files from forms

Michel Pelletier michel@digicool.com
Sun, 05 Sep 1999 23:35:36 -0400


linuxcraft@scorpio.redspice.com wrote:
> 
> Anybody tried using the form wiht file input type. Zope uses this
> to upload html files from user's disk. Question is how does it
> access the file in the form variables. I cannot see anything in the
> request
> that shows a file. When I access the file variable all I can see is a
> file name
> that the user entered. Any ideas ?
> 

<dtml-var "file.read()"> 

will spill the contents of the file.

-Michel

> Thanks
> sathya rangaswamy
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )