diff --git a/src/Controllers/MediaController.php b/src/Controllers/MediaController.php index 8dc5a7d..ac2c901 100644 --- a/src/Controllers/MediaController.php +++ b/src/Controllers/MediaController.php @@ -129,7 +129,7 @@ public function store($slug, $folder, Request $request) } // Check if filesize is allowed - if ($upl->getClientSize() > $this->uploadLimit() * 1024 * 1024) { + if (method_exists($upl, 'getClientSize') ? $upl->getClientSize() : $upl->getSize() > $this->uploadLimit() * 1024 * 1024) { return '{"status":"' . trans('admin::base.filetoobig') . '"}'; }