FEATURE Passing $tmpFile to extension.

This commit is contained in:
Taras Yemtsov 2016-02-22 15:11:26 +03:00
parent b4ea87a3bf
commit 01c8d38885

View File

@ -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.');