Skip to content

Commit

Permalink
Stop using getClientSize
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdekruijk committed May 11, 2020
1 parent 700ffa7 commit 63cda93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/MediaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function store($slug, $folder, Request $request)
}

// Check if filesize is allowed
if (method_exists($upl, 'getClientSize') ? $upl->getClientSize() : $upl->getSize() > $this->uploadLimit() * 1024 * 1024) {
if ($upl->getSize() > $this->uploadLimit() * 1024 * 1024) {
return '{"status":"' . trans('admin::base.filetoobig') . '"}';
}

Expand Down

0 comments on commit 63cda93

Please sign in to comment.