I\'ve a form as
You could subscribe for the onchange event on the input field:
and then:
document.getElementById('file').onchange = function() { // fire the upload here };