Would you be able to compare the date/time of the upload to the date/time of
the 'last update' for the file?  This could shed some light on whether the
file had been opened/re-saved since the upload.  (however it would not show
if it had been opened and 'not changed', only re-saved.

William

-- 
William E. Seiter
 
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
 
Web Developer 
http://William.Seiter.com
-----Original Message-----
From: Robert Rawlins - Think Blue
[mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 13, 2007 10:46 AM
To: CF-Talk
Subject: Check File For Change

Hello Guys,

 

I've got an application that receives files from an upload form, the user
can then come and view/download those files again at a later date. When the
file is uploaded I store the basic details, such as the files path and name
into a database table, these entries are displayed to the user with a
download link, once the link is clicked the file is then served to the
client using the cfcontent tag.

 

Now, I'm looking for a method to ensure that the file has not been modified
on the file system since the user uploaded it, the chances of it being
modified are exceptionally slim, I know, but the consequences of it having
happened are quite serious, so I need to be sure.

 

I'm thinking about implementing some form of MD5 check sum on the files,
this sum will be saved to the database when the file is uploaded, and
checked against a newly generated checksum before the file is served back to
the user again. Does that sounds like a fair concept? How severally is it
likely to hit performance? Is there a better option?

 

I've also not done any of this MD5 work before, has anyone got any pointers
on the best way to handle it?

 

Thanks again,

 

Rob





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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

Reply via email to