Upload File with one button

html, javascript

Solution

<form>
    <input type="file" onchange="this.form.submit()" /> 
</form>

- jsFiddle Demo

- form.submit() on MDN

Problem

How can I make a button in the html you need to send files that allow you to select the file and then sending it on the page that I want without using a button to select the file and a button to send it to another page? Thanks you!

Original source