码迷,mamicode.com
首页 > 其他好文 > 详细

Uploadify火狐出现302错误

时间:2016-01-20 22:10:37      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

$(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 }

});
})

 

这段代码是发布的前期上传和发布后的一段血泪史!

Uploadify火狐出现302错误

标签:

原文地址:http://www.cnblogs.com/boosasliulin/p/5146451.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!