0
我使用uploadify(jQuery的上传插件)Uploadify - 窗体身份验证
有JavaScript的
$("#<%=ImageUpload.ClientID %>").uploadify({
'uploader': '/Scripts/Plugins/uploadify/uploadify.swf',
'script': 'Upload.ashx',
'scriptData': {},
'cancelImg': '/Scripts/Plugins/uploadify/cancel.png',
'folder': 'Uploads',
'auto': true,
'multi': true,
'fileExt': '.jpg;.gif;.png;.bmp;.jpeg',
'onError': function (a, b, c, d) {
if (d.status == 404)
alert('Could not find upload script. Use a path relative to: ' + '<?= getcwd() ?>');
else if (d.type === "HTTP")
alert('error ' + d.type + ": " + d.status);
else if (d.type === "File Size")
alert(c.name + ' ' + d.type + ' Limit: ' + Math.round(d.sizeLimit/1024) + 'KB');
else
alert('error ' + d.type + ": " + d.text + ASPSESSID);
}
});
和web.config中
<authorization>
<deny users="?" />
</authorization>
如果我删除在网络认证。配置它的作品。我怎么解决这个问题?
谢谢大家。