SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply call your form's submit method in the onchange event of your file input.
submit
onchange
document.getElementById("file").onchange = function() { document.getElementById("form").submit(); };
http://jsfiddle.net/cwvc4/73/