Hi !

Chris Withers wrote:
> 
> Brown Fox wrote:
> > i want to know the size of an image or a file.
> >
> > With
> > <dtml-var "_.len(object)">
> > i count objects, but for the length?
> 
> For images or file objects, I think you can try for:
> 
> <dtml-var "file_or_image.length">

Isn't it nice we have the Snippets ? :-)

http://zdp.zope.org/projects/zsnippet/snippets/DTMLTags/ObjectLength

Regards,

Maik Röder

-- 
"The computing future is based  on "cyberbodies" - self-contained, 
neatly-ordered,  beautifully-laid-out  collections of information, 
like immaculate giant gardens." The second coming - A manifesto. David
Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html

_______________________________________________
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