<?php // get size in bytes Storage::disk('public')->size($pathToFile); // get mime type Storage::disk('public')->getMimeType($pathToFile);
Storage::disk('public')->size($pathToFile);
While the "getMimeType" will return the type of the file e.g "image/jpeg"
Storage::disk('public')->getMimeType($pathToFile);
Leave a reply