I\'ve a form as
Use the change event on the file input.
$("#file").change(function(){ //submit the form here });