If you use CFDIRECTORY on a directory, you can gather the file size.  I
don't know exactly what you want to see in code, but it's fairly simple to
do something like:

<CFDIRECTORY ACTION="read"
    DIRECTORY="directory name"
    NAME="yourquery"
    FILTER="*.*">

And then use the query object to loop over a set of code that updates the
file size in your db.

use yourquery.Size to determine the file size

Michael Buffington
[EMAIL PROTECTED]
(714) 556-3890 x222
http://www.price.com 

-----Original Message-----
From: Emmet McGovern [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 10:25 AM
To: CF-Talk
Subject: rewrite filesize?


Can anyone show me snippet of code to read a filesize and write it to a
database? I have a file manager i wrote using cffile but some of the uploads
are just tooo big.  We upload a fake 4k file now then write the larger file
overtop of it.  I need to be able to reread the size of the file and update
the db with the new filesize.


Thanks,


Emmet McGovern
Systems Administrator
Byte Size Inc
http://www.oceancity.md
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to