Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello,
i would like to ask about logging of operations on files. Are the information about file upload/delete being logged? If yes - where to see them. If not - why?! It's essential to know who uploaded/deleted THAT file especially when there are few people with proper rights. IMO information about node edit isn't enough when we have to find out who had deleted particular file.
Best regards
Comment | File | Size | Author |
---|---|---|---|
#2 | filefield-logging-D6.patch | 809 bytes | lordzik |
Comments
Comment #1
quicksketchFile deletion is not recorded (nor are any other node changes) unless you create new revisions on each edit. If you use revisions, files are not actually deleted from the node but are no longer shown on display, since you can at any time restore a previous revision. If you'd like to have file deletions specifically monitored, you'll need to use an additional module, I haven't heard of one specifically that does this, but it's definitely within the realm of implementation, since FileField notifies all modules through hook_file_delete() whenever a file is deleted.
Comment #2
lordzik CreditAttribution: lordzik commentedThanx for the info.
Take a look at this patch. It adds information about added/deleted files.
Regards
Comment #3
lordzik CreditAttribution: lordzik commentedComment #4
lordzik CreditAttribution: lordzik commentedComment #5
quicksketchHm, I don't think this change is really necessary. It's not in the Drupal 7 version of File module either, meaning this would need to be provided by another module in Drupal 7 anyway. If you really need this logging, I suggest a simple module that implements hook_file_insert() and hook_file_delete() to include this logging.