Is there a way to return the size of a file in a specific directory on a site using CF?
I have a folder with various files that users can download from my site. I want to be able to show the users the file size before they decide to download it.
<cfdirectory directory="c:\someFolder\" filter="YourFileName.xls" name="fileDetails">
<!--- show file size --->
<cfoutput>File size in bytes: #fileDetails.size#</cfoutput>
<!--- show all --->
<cfdump var="#fileDetails#">
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.