I've got a Java REST based web service sitting on a server which is accessed via a PHP web application on a separate server.
The PHP app delegates the actions performed by browser clients to the web service. I want to perform a file upload function to the web service via HTTP POST and PUT. The browser clients will use POST to upload a file to the PHP app and then will POST or PUT the file to the web service.
Do I have upload files to the PHP server, wait for the upload to finish and then upload that file to the Java web service? Or can I somehow bounce the file upload along to the Java server as it's happening? Or maybe there's some other solution?
Thanks.