[Zope] Re: DTML/Python to upload documents
E. Seifert
e.seifert@gmx.net
Sat, 26 May 2001 11:33:27 +0200
Hi Ron,
>The problem with the following code is that it does not put a file in my
>folder. All it does is copy the location of the file (e.g.,
>G:\some\path\to\file\filename.pdf). No document.
>
>If I get this right, I'm going to post in on ZopeLabs. (ZopeLabs is a
really
>great idea, incidentally.)
>
>Here is the code for the form...
>
><dtml-var standard_html_header>
>
><H3 ALIGN="center">Add a Document Associated with the <dtml-var
case_style></H3>
><P ALIGN="center">Enter the information below to upload the document.</P>
>
><FORM ACTION="addFileAction" METHOD="POST">
It's important to specify a encoding type for the form:
<FORM ACTION="addFileAction" METHOD="POST" ENCTYPE="multipart/form-data">
I hope this will solve your problem.
Bye,
Eric