I have used fileupload.js jquery plugin and followed this tutorial to implement this: ASP.NET Ajax file upload using jQuery File Upload plugin
This works great, but as soon file is selected using the input(fileuplaod control), event is raised and uploades the file. However, I'm trying to do this only after button click.
Here is the code:
<input id="fileupload" type="file" name="file" multiple="multiple"/>
<input id="btnSubmit" type="button" value="Start Upload"/>
$('#fileupload').fileupload({
//uploads file
});
Need to do something like this:
$('#btnSubmit').click(function () {
$('#fileupload').fileupload({
//uploads file
});
});
I guess we can do this using callback option but I could not get this properly:Callback Options