this is what i originally tried:
- $('myform').set('send', {
- onSuccess: function(){
- console.log('great success!');
- }
- });
- $('myform').send();
That code works great... for any <input> EXCEPT <input type=file>.
I found that I have to use
- $('myform').submit();
This code works fine to upload the file, but now I don't have the onSuccess event handler.
How can I get the best of both worlds??


