1
我正在使用uploadify v2.1.4爲我的coldfusion上傳多個文件。它的工作以及在IE 9,但在Firefox 5時發生錯誤HTTP 302coldfusion uploadify 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,以便知道去哪兒。 –