Hardly destined to get an answer (judging by recent questions), but still try.
Stupidly, no events, no download completion, no progress, nothing. Although the file is successfully loaded - I have the opportunity to debug both the server and the client, and so the server successfully receives a request, it gives an answer ... But the plugin completely ignores this whole thing. Where I nakosyachil?
@section scripts { <script src="@Url.Content("~/Scripts/jquery-1.12.3.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jQuery-File-Upload/vendor/jquery.ui.widget.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jQuery-File-Upload/jquery.iframe-transport.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jQuery-File-Upload/jquery.fileupload.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/Index.js")" type="text/javascript"></script> <script type="text/javascript"> window.fileUploadUri = "@Model.FileUploadUri"; </script> } <div> <input id="fileupload" type="file" name="files"> <br/> <div id="progress" class="progress"> <div class="progress-bar progress-bar-success"></div> </div> </div> Script
$(function () { $("#fileupload").fileupload({ url: getUri($("#fileupload")[0].value), dataType: "json", done: function (e, data) { console.log("Done!"); }, progressall: function (e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); console.log(progress); //$("#progress .progress-bar").css( // "width", // progress + "%" //); } }); });