Skip to content

Commit 63cda93

Browse files
committed
Stop using getClientSize
1 parent 700ffa7 commit 63cda93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/MediaController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function store($slug, $folder, Request $request)
129129
}
130130

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

0 commit comments

Comments
 (0)