After AJAX request to save the picture?

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 :)

PS am Using jquery for validation.validate
June 14th 19 at 18:16
1 answer
June 14th 19 at 18:18
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.
Yes, that's right.
You want to save the file from the form on the locale, if the request to the remote server received a positive response.
What is curl? - gerda.Lowe80 commented on June 14th 19 at 18:21
, cURL is a program that allows you to create requests to remote server and get information from him without using a browser. Many programming languages have add-ons for this program to avoid typing console commands manually.
For example, for php - Roderick92 commented on June 14th 19 at 18:24

Find more questions by tags LaravelPHP