upload images to web service with laravel
问题 I'm using Laravel 5.4 and Guzzle to upload files and images to another server. I am using the following method on the client/server side public function store (Request $request) { $dataForm = $request->all(); $Client = new Client(); $response = $Client->post('http://localhost/WebService/public/api/client', [ 'multipart' => [ [ 'name' => 'UploadIMG', 'filename' => 'image_org', 'Mime-Type' => 'image_mime', 'contents' => $ request->file('UploadIMG'), ], ] ]); $ response = $ response-> getBody ()