[Zope] Image Upload

Dieter Maurer dieter@handshake.de
Wed, 17 Jan 2001 21:40:53 +0100 (CET)


Fabio da Silva Santos writes:
 > I'm trying to insert an image in Zope by uploading it in an HTML 'file'
 > field, using the following validation code:
 > 
 > <dtml-if "banner_1 <> _.None">
 >    <dtml-call "banners.manage_addImage(id='',file=banner_1)">
 > </dtml-if>
You could try:

   <dtml-if "banner_1.filename">
     ....
   </dtml-if>

This tests for a non-empty filename.


Dieter