Skip to content
Advertisement

Upload file using Curl and receive them in Laravel method

I have been trying to upload file to using curl using laravel app end point.

Below code is on separate server.

JavaScript

And receiving end in laravel app hosted on different server.

JavaScript

It returns me empty response. I am able to verify curl request using headers.

Any suggestion will be helpful. Thanks.

Advertisement

Answer

You can try something like this on the source server instead:

JavaScript

From the destination server, print the request sent.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement