Here's how I'm checking for the dimensions of an uploaded image. You could
similarly do the size as well.

<dtml-if "(_.int(_.getitem(_['tmpimageid'],1).getProperty('height')) > 150)
or (_.int(_.getitem(_['tmpimageid'],1).getProperty('width')) > 200)">
    <B>Error:</B>your image is bigger than 200x150!
  </dtml-if>



_______________________________________________
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