Re: Check File For Change

2007-10-15 Thread Claude Schneegans
>>How are you going to guarantee the person that changes the file doesn't change the registered hash too? Easy: don't put the registered hash in the edit form. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (P

Re: Check File For Change

2007-10-14 Thread Jochem van Dieten
Robert Rawlins - Think Blue wrote: > 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 n

Re: Check File For Change

2007-10-14 Thread James Holmes
The inbuilt Java crc32 code might work well too: http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/CRC32.html On 10/15/07, Claude Schneegans <[EMAIL PROTECTED]> wrote: > >>Even if the tag is not > published I'd love to hear a little about the concepts of how it works, you > can mail me off

Re: Check File For Change

2007-10-14 Thread Claude Schneegans
>>Even if the tag is not published I'd love to hear a little about the concepts of how it works, you can mail me off list if you'd prefer to keep it private. Actually, it does not use MD5 algorithm, but a CRC-32 checksum, which returns an 8 characters hexadecimal value. The probability of having

RE: Check File For Change

2007-10-14 Thread Robert Rawlins - Think Blue
ts of how it works, you can mail me off list if you'd prefer to keep it private. Thanks again for the advice mate, I'll look into that directory tag too. Rob -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: 14 October 2007 16:45 To: CF-Talk Subject:

Re: Check File For Change

2007-10-14 Thread Claude Schneegans
>>Does that sounds like a fair concept? It sure is. I have written such a tag and it works. I use it to make sure two images are not the same, even if they have different file names. But I have not publish the tag yet. I also have a tag that return a correct time stamp about a file, to the seco

RE: Check File For Change

2007-10-13 Thread William Seiter
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 f

Check File For Change

2007-10-13 Thread Robert Rawlins - Think Blue
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