Summary: Notify also when uploads take place
Created: 2006-08-14 11:39
Priority: 55555 5433
Description: Currently notifications are only triggered by (successful) page edits. Remembering pmwiki as a collaboration tool, one would surely also want to be notified if a colleague adds or updates a file on the site. (Actually every change on the site may be relevant.)
Thus I would like pmwiki to do also notifications on successful uploads.
Reviewing the script/notify.php, it seems the only things needed are an array $UploadFunctions similar to
if ($upresult == "success") foreach((array)$UploadFunctions as $fn) $fn($pagename,...);
in HandleUpload() in scripts/upload.php that is executed on sucessful upload, and the registering of an UploadNotify() function (defined similar as PostNotify()) as one upload function in scripts/notify.php:
$UploadFunctions = 'UploadNotify';
The last line could of course be made optional using a config switch.
Other Notify PITS entries
This feature would be very helpful! --Hagan