That will give you the length in characters of the file.  Unless I
misunderstood what you were trying to do, you want to use the <cfdirectory>
solutions that have been posted.  The LiveDocs will provide you with all of
the details that you need.  :-)
 

-----Original Message-----
From: Aaron Roberson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 04, 2006 5:23 PM
To: CF-Talk
Subject: Re: How to get file sizes dynamically?

I was doing a search through cfQuickDocs and found <cffile /> Should I use
<cfdirectory /> or <cffile />?

In a search I did on cffile I somebody suggested the following:

<CFFILE ACTION="Read" Variable="MyFile" file="myfile.ext">

File Size: <cfoutput>#Len(MyFile)#</cfoutput>

Thanks again,
Aaron

On 10/4/06, Matt Quackenbush <[EMAIL PROTECTED]> wrote:
> <cfdirectory action="list"> will return a query containing all the 
> info you want.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255553
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to