var allUploadsComplete = false;
$(function () {
$("#files").uploadify({
auto: false,
removeCompleted: false,
swf: "@Url.Content("~/Content/uploadify/uploadify.swf")",
uploader: "/import/fileupload",
formData: { uploadkey: "@Model.UploadKey" },
onQueueComplete: function () {
console.log("uploads complete");
allUploadsComplete = true;
}