Cffile action read wont give you anything more than the content of the file.
A len(myfile) /1024 may give you the kilobytes though :-)

<cffile action="read" file="d:\path\to\my\file.ext" variable="myfile" />
#len(myfile) / 1024# kb

Or...you can cfdirectory the parent dir of the file and use a filter of the
files name. then the var you want is 'size'

<cfdirectory directory="d:\path\to\directory" filter="myfile.ext"
name="myfile />

#myfile.size#
 

..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 9:46 AM
To: CF-Talk
Subject: cffile action=read does FILE.fileSize still work?

Good morning,

I'm sure this is a simple one for most of you, but I forget. If I perform a
cffile action="read" etc ...
on an image file, I should be able to get #FILE.fileSize# correct? I was
able to do it using action="upload".

Thanks

D



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264306
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