0

Ive been searching for this answer for almost a week now.

What is the easiest way for an admin to view which files an authenticated user has downloaded? To be more specific, I need the username of the user and the name of the downloaded file and then I can check my registrations for their specific email addresses and use it for lead generation.

Ive tried Google Analytics, but I can only see whats being downloaded and when, not by which username.

Ideas?

Thanks

Muhammad Reda
  • 26,379
  • 14
  • 93
  • 105
DataGuy
  • 1,695
  • 4
  • 22
  • 38

1 Answers1

2

1- Make sure that your files are stored as private files NOT public files.

2- Use hook_file_download() to dig inside the private file download process (you can do anything you want from there).

Hope this helps... Muhammad.

Muhammad Reda
  • 26,379
  • 14
  • 93
  • 105