【发布时间】:2011-08-10 02:16:30
【问题描述】:
我使用uploadify v2.1.4 为我的coldfusion 上传多个文件。它在 IE 9 中运行良好,但在 Firefox 5 中出现错误 http 302
$('#uploadfile').uploadify({
'uploader' : 'uploadify.swf',
'script' : './upload.cfm',
'cancelImg' : 'cancel.png',
'auto' : true,
'multi' : true,
'onError' : function(a, b, c, d) {
alert("Event: "+a+", QueueID: "+b+" FileInfo: "+c.name+", "+c.size+", "+c.creationDate+", "+c.modificationDate+", "+c.type+" Error: "+d.type+", "+d.info);
}
});
还有我的upload.cfm
<cfscript>
thisPath = ExpandPath("*.*");
thisDirectory = GetDirectoryFromPath(thisPath);
FileDir = thisDirectory & "uploads/";
</cfscript>
<cffile action="upload" filefield="fileData" destination = "#FileDir#" nameconflict="makeunique" mode="777">
【问题讨论】:
-
HTTP 状态码 302 不是错误,它是临时重定向的通知。您的 ColdFusion 代码是否在其中执行
? 向浏览器返回 302,以便它知道去哪里。
标签: coldfusion uploadify http-status-code-302 firefox-5