diff --git a/src/BulkUploader/BulkUploadHandler.php b/src/BulkUploader/BulkUploadHandler.php index 3c8a27b..11c97c7 100644 --- a/src/BulkUploader/BulkUploadHandler.php +++ b/src/BulkUploader/BulkUploadHandler.php @@ -80,7 +80,7 @@ protected function createDataObject($fileID) $record = $recordClass::create(); $record->write(); - $record->extend('onBulkUpload', $this->gridField); + $record->extend('onBulkUpload', $this->gridField, $fileID, $record); $fileRelationName = $this->component->getFileRelationName($this->gridField); $record->{"{$fileRelationName}ID"} = $fileID;