I have a page on my localhost that contains an input type file and a submit button.
From this page I can upload files.
It looks like this:
<form>
<input type="file">
<input type="submit" value="Submit">
</form>
This page is on url: http://127.0.0.1/upload.html
What I want to do is to have my index.html submit a file to this location like having something like this:
<form action="http://127.0.0.1/upload.html">
etc...
But I want to use Javascript.
How can I do this?