[Zope] Get Propertie-Content from a File
Dieter Maurer
dieter@handshake.de
Tue, 6 Nov 2001 23:06:50 +0100
sbergmann@weblog.de writes:
> ...
> <INPUT TYPE="file" NAME="temp_file:string" SIZE="25" VALUE="">
> ...
>
>
> The following method should add a DTMLDocument with the content of
> the file:
>
> <dtml-let new="homepage_menue_links.createInObjectManager(REQUEST
> ['temp_id'],REQUEST)">
> <dtml-call expr="new.manage_addDTMLDocument
> (temp_id,temp_title,temp_file)">
> ...
> </dtml-let>
>
> But Zope adds a DTMLDocument with the path of the file,
> like 'C:\folder\file.html'
> Does anybody know what is wrong?
You tell Zope to convert "temp_file" into a string...
Remove the ":string" inside the "input type=file" control!
Dieter