Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Confirm File was accessed and by what IP?

Guest
Aug 12, 2008 Aug 12, 2008
Greetings

I use cffile for an administrator to upload documents (PDF) to a repository directory. The name of the file is captured to the DB when uploaded.

I need to confirm if/when an end user has accessed the document, and any other information I can capture (IP address, etc.?) using a yes/no flag field and a field to store IP address? The user's info is already a record in the DB, and their session variable is available at log-in.

Thanks in advance

newportri
TOPICS
Database access
264
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 12, 2008 Aug 12, 2008
LATEST
instead of linking directly to the file in your pages, create an
intermediary page that will capture the user data you want, insert a
record into the db and then either serves up the file using
cfheader/cfcontent tags or cflocate to the actual file. you will need to
pass the filename requested by user to this intermediary page (i.e. in a
url var).

eg:
instead of links like <a href="somepdf.pdf"> you will have links like <a
href="viewfile.cfm?file=somepdf.pdf">

hth

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources