First of all file upload is not possible through Ajax
. You can upload file, without refreshing page by using IFrame
.
Unrelated to question but helpful for a programmar:
You have used e.preventDefault();
where is the e
?. You should pass it to function in the change
event.
Second, once you add correct console.log('error', errorThrown);
and see it in the console using tools like firebug
. It throws error
component does not have requested interface
This is how you should learn debugging.