forms/AssetField.php 1 location
|
@@ 657-660 (lines=4) @@
|
| 654 |
|
} |
| 655 |
|
|
| 656 |
|
// Check if upload field has an error |
| 657 |
|
if ($this->getUpload()->isError()) { |
| 658 |
|
$error = implode(' ' . PHP_EOL, $this->getUpload()->getErrors()); |
| 659 |
|
return null; |
| 660 |
|
} |
| 661 |
|
|
| 662 |
|
// return tuple array of Filename, Hash and Variant |
| 663 |
|
return $result; |
forms/UploadField.php 1 location
|
@@ 1175-1178 (lines=4) @@
|
| 1172 |
|
} |
| 1173 |
|
|
| 1174 |
|
// Check if upload field has an error |
| 1175 |
|
if ($this->upload->isError()) { |
| 1176 |
|
$error = implode(' ' . PHP_EOL, $this->upload->getErrors()); |
| 1177 |
|
return null; |
| 1178 |
|
} |
| 1179 |
|
|
| 1180 |
|
// return file |
| 1181 |
|
return $this->upload->getFile(); |