Skip to content

Commit 7390efe

Browse files
author
gwleuverink
committed
moved ini override to the LfmController's constructor so it's always executed
1 parent bee639f commit 7390efe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controllers/LfmController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class LfmController extends Controller
1414

1515
public function __construct()
1616
{
17+
$this->applyIniOverrides();
18+
1719
if (!$this->isProcessingImages() && !$this->isProcessingFiles()) {
1820
throw new \Exception('unexpected type parameter');
1921
}

src/controllers/UploadController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ class UploadController extends LfmController
2020
*/
2121
public function upload()
2222
{
23-
$this->applyIniOverrides();
24-
2523
$files = request()->file('upload');
2624
$error_bag = [];
2725
foreach (is_array($files) ? $files : [$files] as $file) {

0 commit comments

Comments
 (0)