$(function () {
var auth = "@(Request.Cookies[FormsAuthentication.FormsCookieName] == null ? string.Empty : Request.Cookies[FormsAuthentication.FormsCookieName].Value)"; var ASPSESSID = "@Session.SessionID"; bjclobj.uploader = new Uploader({ uploader: '@Url.Content("~/Uploadify/Uploadfy")', onUploadSuccess: function (file, data, response) { var tempval = $("#CLFilePath").val(); var tempval2 = $("#CLFILENAME").val(); $("#CLFilePath").val(tempval + data + ","); //系统路径 $("#CLFILENAME").val(tempval2 + file.name + ","); //文件名字 }, onQueueComplete: function (queueData) { if (queueData.uploadsErrored > 0) { alert('上传失败!'); WindowLoader.hidenLoader({ target: "clinfo_form" }); } else { submitform(); } }, 'formData': { 'folder': '/Upload', 'ASPSESSID': ASPSESSID, 'AUTHID': auth }});
})
这段代码是发布的前期上传和发布后的一段血泪史!