diff --git a/src/Http/Controllers/Admin/MediaLibraryController.php b/src/Http/Controllers/Admin/MediaLibraryController.php index 6b11e2b75..fee292e37 100644 --- a/src/Http/Controllers/Admin/MediaLibraryController.php +++ b/src/Http/Controllers/Admin/MediaLibraryController.php @@ -187,6 +187,11 @@ public function storeFile($request) [$w, $h] = getimagesize($uploadedFile->path()); + if ($request->input('width') && $request->input('height')) { + $w = $request->input('width'); + $h = $request->input('height'); + } + $uploadedFile->storeAs($fileDirectory, $filename, $disk); $fields = [