mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +02:00
Merge pull request #5076 from flamytwista/patch-2
FEATURE Passing $tmpFile to extension.
This commit is contained in:
commit
2e037881b6
|
@ -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.');
|
||||
|
|
Loading…
Reference in New Issue
Block a user