laravel get size of file code example
Example 1: laravel validate max file size
$validator = Validator::make($request->all(), [
'file' => 'max:500000',
]);
Example 2: how to get the size of an uploaded file in laravel
use Illuminate\Support\Facades\Storage;
$size = Storage::size('public/'.$picture->filename');
Example 3: laravel get file size uploaded
$size = $request->file('file')->getClientSize();