ColdFusion 8: getFileInfo() A Handy Addition
ColdFusion 8getFileInfo() is a new function ColdFusion 8 that, well, returns information about a file! Its easier to see it in action than to describe it.
<cfdump var="#getFileInfo("/basic.doc")#">
The size is given in bytes. One other nice thing is that as getFileInfo returns a structure its possible to do something like this:
<cfif getFileInfo("/basic.doc").canWrite>Or replace canWrite with any other key. Not the most exciting of the new ColdFusion8 features but one that will be very handy over time.





Loading....