2012-03-05 115 views
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> 

如果我刪除在網絡認證。配置它的作品。我怎麼解決這個問題?

謝謝大家。

回答