diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index c5a0b8b0..fe100ff4 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -234,6 +234,8 @@ JS foreach($newFiles as $newFile) { $fileIDs[] = $newFile; $fileObj = DataObject::get_one('File', "`File`.ID=$newFile"); + // notify file object after uploading + if (method_exists($fileObj, 'onAfterUpload')) $fileObj->onAfterUpload(); $fileNames[] = $fileObj->Name; }