Support the ongoing development of Laravel.io →
posted 3 years ago
Laravel
Last updated 1 year ago.

irankhosravi liked this thread

1

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(); 
}

}

Last updated 3 years ago.

irankhosravi liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

Mahmoud Mahmoud irankhosravi Joined 25 Aug 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.