from the dept.
I've seen a thread about displaying images using <img src="&dtml.url-file;">, which works, but is there a way to determine if the file is actually an image?
I've tried using <dtml-var "meta-type">, but it returns only "Squishdot File" as the type. I also tried <dtml-var expr="file_name[0,4]"> to get the file extension and use that as the basis for whether or not to use the img tag, but it returns an "unscriptable object" error. Any ideas, suggestions? Thanks in advance. Tom
< | >
|"Any system that depends on reliability is unreliable." -- Nogg's Postulate|
|All trademarks and copyrights on this page are
owned by their respective companies.
Comments are owned by the Poster.
The Rest ©1999
Butch Landingin, ©2000-2002