irankhosravi liked this thread
You didn't declare input tag as file type with image name in you form. If we assume you declare that, you can apply foreach loop such as following:
if($request->has('image')) {
foreach ($request->file('image') as $image) {
$filename = $image->getClientOriginalName();
// other methods
$size = $image->getSize();
$ext = $image->getClientOriginalExtension();
$mime_type = $image->getClientMimeType();
}
}
irankhosravi liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community