I use to work with the submit(callback) jQuery method, in the callback i serialize my form and do an ajax post call.
But this time, i need to upload a file, and this method desn't seems to work, so i try to directly submit the form with the submit() jQuery method, but i am not able to avoid the redirection, i am however calling e.preventDefault(); before:
$('form.input.upload').change(function(e) {
  e.preventDefault();
  $('form.example').submit();
});
 
     
    