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

CommentFileSizeAuthor
#2 filefield-logging-D6.patch809 byteslordzik
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

File 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.

lordzik’s picture

FileSize
809 bytes

Thanx for the info.
Take a look at this patch. It adds information about added/deleted files.

Regards

lordzik’s picture

Component: User interface » Code
Category: support » feature
lordzik’s picture

Status: Active » Needs review
quicksketch’s picture

Status: Needs review » Closed (won't fix)

Hm, 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.