I have ReactJS code on client side that sends files to server side. How change it so it can be synchronous and by that I mean how can I get information that the request was