Basically the below fires right after you click browse and select a file.
I just need a single file upload done of the file the user selects through the regular file input type and I want it to fire right after the file is selected and done asynchronously in the background.
<input type="file" name="imagefile" size="20" />
$('input[type="file"]').change(function () {
var $file = $(this).val();
$.ajax({
url: "/Admin/BannerImageUpload",
type: 'POST',
processData: false,
contentType: false,
data: { file: $file },
success: function (data) {
alert('Load was performed.');
}
});
});