Answer the question
In order to leave comments, you need to log in
How to accept multiple files from AngularJs in Laravel?
Hi everybody.
I made a "point" for downloading files in Lara.
public function store(Request $request)
{
$file = $request->file('content');
dd($file); //path to tmp/file.extension
}
Request Payload (Chrome Dev-Tools)
------WebKitFormBoundary3QeBp3B4d9KICAF5
Content-Disposition: form-data; name="content"; filename="COKE1.jpg"
Content-Type: image/jpeg
------WebKitFormBoundary3QeBp3B4d9KICAF5
Content-Disposition: form-data; name="content"; filename="coke.png"
Content-Type: image/png
Answer the question
In order to leave comments, you need to log in
foreach($request->file('content') as $file)
JS:http://localhost/nested/url?content[]=files
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question