2013-05-02 159 views
0

我有一個swfupload的問題,它總是返回HTTP錯誤HTTP狀態:302當我使用FF,但在其他瀏覽器中正常工作。swfupload HTTP錯誤HTTP狀態:302

SWF DEBUG: SWFUpload Init Complete 
SWF DEBUG: 
SWF DEBUG: ----- SWF DEBUG OUTPUT ---- 
SWF DEBUG: Version:    2.5.0 2010-03-05 Beta 3.2 
SWF DEBUG: movieName:    SWFUpload_0 
SWF DEBUG: Upload URL:    http://localhost/administrator/upload 
SWF DEBUG: File Types String:  *.* 
SWF DEBUG: Parsed File Types:  
SWF DEBUG: HTTP Success:   0 
SWF DEBUG: File Types Description: All Files (*.*) 
SWF DEBUG: File Size Limit:  3145728 bytes 
SWF DEBUG: File Upload Limit:  100 
SWF DEBUG: File Queue Limit:  100 
SWF DEBUG: Post Params: 
SWF DEBUG: ----- END SWF DEBUG OUTPUT ---- 
SWF DEBUG: 
SWF DEBUG: Stage Resize:64 by 23 
SWF DEBUG: Button Image Loaded 
SWF DEBUG: Stage Resize:64 by 23 
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.* 
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list... 
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0 
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1 
SWF DEBUG: StartUpload: First file in queue 
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0 
SWF DEBUG: StartUpload(): Upload Type: Normal. 
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for standard upload. Starting upload to http://localhost/administrator/upload for File ID: SWFUpload_0_0 
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0 Bytes: 0. Total: 80202 
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 80202. Total: 80202 
**SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 302.** 
EXCEPTION: fileName: http://localhost/js/upload/fileprogress.js 
EXCEPTION: lineNumber: 51 
EXCEPTION: columnNumber: 2 
SWF DEBUG: Event: uploadComplete : Upload cycle complete. 

在此先感謝。

+0

可能重複[SWFUpload的302錯誤(http://stackoverflow.com/questions/10488110/swfupload-302-error) – 2014-07-25 10:39:03

回答

0

你在這裏看到的是服務器的響應。 302意味着重定向。檢查您的服務器在Firefox上傳時重定向的原因。

我看你使用URL沒有斜線:

http://localhost/administrator/upload 

某些服務器重定向到適當的位置加上斜槓。試着上傳:

http://localhost/administrator/upload/ 
+0

感謝,但這種方法並沒有解決我的問題:| – DuyHung 2013-05-02 04:20:23

+0

你有現場演示嗎?您可以使用fiddler(http://fiddler2.com/)來驗證上傳請求的方式與其他瀏覽器中的請求不同。 – 2013-05-02 15:20:16

+0

Hi @TomasKirda Bro我在我身邊也有同樣的問題,無法解決它。你能幫我嗎? – 2013-07-11 14:01:25