Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

determine file size

Status
Not open for further replies.

Jami

Programmer
Jul 18, 2000
54
US
Hi all,

I have some pdfs in a directory on my server that visitors are able to download. Depending on a drop down they selected previously, one appropriate pdf will be available. I would like to display the size of that pdf next to the download link but don't want to hard code this, as an admin section to the site allows pdfs to be removed and updated all of the time. Is there a way to display the file size of a pdf on your server in this way?

Thanks!
Jami
 
Ok, found it using cfdirectory if anyone's interested:

<CFDIRECTORY NAME=&quot;filelist&quot; DIRECTORY=&quot;/mydirectory/download/&quot; FILTER=&quot;#lloc_num#.pdf&quot;>
<cfoutput query=&quot;filelist&quot;>#size#</cfoutput>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top