I need help with sending a file from a browser to another device that is connected to a machine that is running a server. I'm new to web application programming as well as back-end programming.
The existing code can move a file that exists on the server to the device by calling the web API as follows - http://localhost:3333/api/Install_Job_to_device/filename.zip..
The existing server-side code is also capable of receiving a file from the browser.
Now I want the browser code to call the API http://localhost:3333/api/Install_Job_to_device/filename.zip once the filename.zip file is uploaded to the server, so that it gets transferred to the device.
The current code which uploads file to the server is below. Can you please suggest how to make the Web API call from here ?
<h3>File Upload:</h3>
Select a file to upload: <br />
<form action="../api/RdaServer" method="post"
enctype="multipart/form-data">
<input type="file" name="file" size="50" />
<br />
<input type="submit" value="Upload File" />
</form>