[Zope] Adding an ExtFile from a web page

Andrei Cenja cnj@finsiel.ro
Thu, 10 May 2001 09:25:34 +0300


--=====================_58536290==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hello !

I'm trying to use the ExtFile product to upload files into the filesystem 
of the machine running Zope.

I previously used manage_addFile to upload files (from a web page, not the 
manager) into the ZODB like this:

context.manage_addProduct['OFSP'].manage_addFile(id=<>, title=<>, file=<> )

and now I would like to do something equivalent with manage_addExtFile; 
however, I constantly receive a key error

Error Type: KeyError
Error Value: standard_html_header

It seems that it's not any of "my" dtml-vars, but rather my incorrect use 
of the ExtFile object, and being very new at this, I'm not making much out 
of reading the code.

Could you please give me a hint on how can be a file uploaded from a web 
page with the ExtFile object ?

Thank you !

Andrei Cenja, Bucharest, Romania.
--=====================_58536290==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
Hello !<br><br>
I'm trying to use the ExtFile product to upload files into the filesystem
of the machine running Zope.<br><br>
I previously used manage_addFile to upload files (from a web page, not
the manager) into the ZODB like this:<br><br>
context.manage_addProduct['OFSP'].manage_addFile(id=&lt;&gt;,
title=&lt;&gt;, file=&lt;&gt; )<br><br>
and now I would like to do something equivalent with manage_addExtFile;
however, I constantly receive a key error <br><br>
<b>Error Type: KeyError<br>
Error Value: standard_html_header<br><br>
</b>It seems that it's not any of &quot;my&quot; dtml-vars, but rather my
incorrect use of the ExtFile object, and being very new at this, I'm not
making much out of reading the code. <br><br>
Could you please give me a hint on how can be a file uploaded from a web
page with the ExtFile object ?<br><br>
Thank you !<br><br>
Andrei Cenja, Bucharest, Romania.</html>

--=====================_58536290==_.ALT--