There is a form with a file field. I'm sending an ajax request to a remote server, receive a response.
How do I save on a local file server out of shape if I got the answer true?
Perfect if you tell me how to implement it in Laravel :)
Did I understand correctly that data forms were sent to a remote server and already had a positive result. And then need the same form data already send to the local server to save their already in?
I think that this is impossible.
You need to send data initially to the local server. The script has received form data curl sends th data to a remote server, and if it returns true, then saves the data to the local server. And then replies to the client about the success or failure.