aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/upload.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/upload.php b/actions/upload.php
index 228253ddd..3aa739414 100644
--- a/actions/upload.php
+++ b/actions/upload.php
@@ -192,6 +192,9 @@
// update user/group size for checking quota
$image_repo_size += $sent_file['size'];
+ // plugins can register to be told when a new image has been uploaded
+ trigger_elgg_event('upload', 'tp_image', $file);
+
// successful upload so check if this is a new album and throw river event/notification if so
if ($album->new_album == TP_NEW_ALBUM) {
$album->new_album = TP_OLD_ALBUM;