Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0
Solution

I found this. Get the incomng request which is an file object and then move it to a folder using the original name.

The parameters are move(folder_location,the_name_of_the_file.jpg)

Request::file('image_name')->move('images', Request::file('image_name')->getClientOriginalName());
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ottz0 ottz0 Joined 15 Nov 2014

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.