[Zope] How can I use manage_addFile???

jens ebaer jensebaer@hotmail.com
Thu, 02 Dec 1999 14:09:38 GMT


Hello

I have a problem with this function call:

newdriver (dtml name)
--------------------------------------------------------------
<!--#call 
"manage_addFile(REQUEST['id'],REQUEST['title'],REQUEST['file'])"-->
--------------------------------------------------------------

When I call this I get:

Error Type: UnpickleableError
Error Value: Cannot pickle objects

I want to create a new file (upload a file) (PDF File or Zip File for 
example).
Here the dtml-method that calls the dtml method with the funktion
----------------------------------------------------------------------
<form action="newdriver" method="POST" enctype="multipart/form-data">
   <table border="0" cellspacing="0" cellpadding="0" width="630">
     <tr>
        <td align="left" valign="top">Id: <input type="text" name="id" 
value="" size="20"></td>
     </tr>
     <tr>
        <td align="left" valign="top">Title: <input type="text" name="title" 
size="20"></td>
     </tr>
     <tr>
       <td align="left" valign="top"><INPUT TYPE="file" NAME="file" value="" 
SIZE="25"></td>
     </tr>
     <tr>  <td><input type="submit" name="submit" value="Add"></td>
    </tr>
   </table>
</form>
-----------------------------------------------------------------

Maybe someone can tell me how to use this funktion.


Thank you

Jens


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com