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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community