Ever wanted to upload files using AJAX like in GMAIL, without reloading the page? Now you can. Cross browser method to upload files using AJAX in only 1Kb of code.
You need to create a form with file fields you wish to upload and define “onsubmit” event. Look at the example below how to do that.