From 01c8d388854466642b6fcc624d6b35b39e44bf7a Mon Sep 17 00:00:00 2001 From: Taras Yemtsov Date: Mon, 22 Feb 2016 15:11:26 +0300 Subject: [PATCH] FEATURE Passing $tmpFile to extension. --- filesystem/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem/Upload.php b/filesystem/Upload.php index a60ceac55..0ae977ffb 100644 --- a/filesystem/Upload.php +++ b/filesystem/Upload.php @@ -210,7 +210,7 @@ class Upload extends Controller { $this->file->Name = basename($relativeFilePath); $this->file->write(); $this->file->onAfterUpload(); - $this->extend('onAfterLoad', $this->file); //to allow extensions to e.g. create a version after an upload + $this->extend('onAfterLoad', $this->file, $tmpFile); //to allow extensions to e.g. create a version after an upload return true; } else { $this->errors[] = _t('File.NOFILESIZE', 'Filesize is zero bytes.');