Skip to content

Commit

Permalink
FEATURE Passing $tmpFile to extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
Taras Yemtsov committed Feb 22, 2016
1 parent b4ea87a commit 01c8d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filesystem/Upload.php
Expand Up @@ -210,7 +210,7 @@ public function load($tmpFile, $folderPath = false) {
$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.');
Expand Down

0 comments on commit 01c8d38

Please sign in to comment.