All File objects have a content_type property. Try <dtml-var "_['somefile.doc'].content_type">
On 7/27/05, Allen Huang <[EMAIL PROTECTED]> wrote: > is there any dtml codes that can display a file's type? > > I made a site that allows a person to send up a document file. But in the > end what I really wanted is to let people to upload .doc files. > Since I didn't put any restriction on it, people always send up a smaller > .pdf file instead. > > So how do I encode my webpage to show the file type of the file that have > already being uploaded?? > > ________________________________ > Start your day with Yahoo! - make it your home page > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )