Support the ongoing development of Laravel.io →
Input Eloquent Forms
Last updated 1 year ago.
0

Pretty much how you described, but don't use POST array, use Request's methods.

$uploadedFile = $request->file('myfile');
$uploadedFile->move('directory/for/files/', 'filename.ext');

$uploadedFile is an object of Symfony\Component\HttpFoundation\File\UploadedFile class, it has some useful function for getting file name, extension, type.

0

Great, thank you.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.