make sure you set the enctype correctly in your form tag:

<form action="foo" method="post" enctype="multipart/form-data">

-Randy
----- Original Message ----- 
From: "Nolan Darilek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 15, 2000 5:07 PM
Subject: [Zope] Uploading files


> I'm trying to write a replacement form which allows users to upload
> images into a folder. I'm almost there, but not quite.
> 
> I'm having difficulties getting the file contents into the database. I
> have an <input type="file"> field, and I'm fairly sure that the data
> is being sent. When I create the Image however, I use
> file=REQUEST['file'], and the resulting image stores the path to the
> file, instead of the file contents. So, given that I've uploaded a
> file, and that its name is in REQUEST['file'], how do I get at its
> contents when creating the Image?
> 
> _______________________________________________
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to