how get the photo size upload in laravel code example
Example 1: how get the Photo size upload in laravel
$request->file('image')->getSize()
Example 2: how get the photo size upload in laravel
request()->validate([
'image' => 'image|mimes:jpeg,png,jpg|max:2048',
]);
Example 3: how to get the size of an uploaded file in laravel
use Illuminate\Support\Facades\Storage;
$size = Storage::size('public/'.$picture->filename');