Thanks Ade...... Correct me if I wrong here because I really don't know, but isn't api you mentioned for apache only or will this work on a Windows box?
I think I will attempt to work something out based on who uploaded what last and assume they've edited the doc (more than likely they have)and this is should at least give me a new learning experience since I am still new to this :) Bob -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Sunday, November 20, 2005 8:29 AM To: CF-Newbie Subject: RE: last modified by ... I guess there's a bunch of ways you can go about this. None are complete. If the docs come from the app to begin with, track who downloaded them, when they get re-uploaded, either assume they were edited, check the file size for differences or check the data last modified. Another way would be to use POI and look for 'last modified by' in the metadata. Again, that might not help as this looks like it's based on the user's machine username. Why not go on the assumption that who ever up loads the file is the last one to have edited it? Ade -----Original Message----- From: Bob Imperial [mailto:[EMAIL PROTECTED] Sent: 20 November 2005 13:16 To: CF-Newbie Subject: RE: last modified by ... These are excel files and will be edited locally and uploaded via cf. My thinking was to possibly save the user_id from the session in a temp table to snag their name for display, but I am unclear as to how or when to check to see if the doc has been modified and if so by whom. But I am a newb, so I'm not even sure if my thinking is correct or at least a good direction to achieve this?? Bob -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Sunday, November 20, 2005 4:50 AM To: CF-Newbie Subject: RE: last modified by ... What sort of docs will you be using? MS Office documents(and most likely others) store this data with the file. Others may not. If the file system knows about it, you can probably get access to it. Right click on a document and have a wander though the tabs, if it's there, chances are you can get at it. CF will only give you access to what you see in the results of a cfdirectory. There may be some methods available in Java but I can't see any after a quick look. The only references I could see were in relation to image metadata. How are these documents being edited? If it's via a web app then you could store this in your app rather than rely on the file. Otherwise, I'm out of ideas. Ade -----Original Message----- From: Bob Imperial [mailto:[EMAIL PROTECTED] Sent: 20 November 2005 08:01 To: CF-Newbie Subject: last modified by ... Hi folks, Need some help here on something I'd like to do in addition to displaying the obligatory, "datelastmodified" is tie it to the last user to edit this. <cfdirectory directory="#ListThisDir#" name="mydirectory" sort="size ASC, name DESC, datelastmodified"> I am currently using <cfset SESSION.Validated = "yes"> <cfset SESSION.Auth = StructNew()> <cfset SESSION.Auth.user_id = match.user_id> <cfset SESSION.Auth.user_fname = match.user_fname> <cfset SESSION.Auth.user_lname = match.user_lname> <cfset SESSION.Auth.user_role = match.user_role> for simple name display yada yada yada. What I would like to do is save a users ID to display along with the datelastmodified value. Any ideas on how best to go about this would be greatly appreciated, examples/tutorials etc. TIA Bob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1530 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
