【问题标题】:swfupload HTTP ERROR HTTP Status: 302swfupload HTTP 错误 HTTP 状态:302
【发布时间】:2013-04-26 03:20:13
【问题描述】:

我的 swfupload 有问题,当我使用 FF 时它总是返回 HTTP ERROR HTTP Status: 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.

提前致谢。

【问题讨论】:

标签: swfupload http-status-code-302 http-error


【解决方案1】:

您在此处看到的是来自服务器的响应。 302 表示重定向。检查为什么您的服务器在 Firefox 中上传时重定向。

我看到您使用的 URL 没有尾部斜杠:

http://localhost/administrator/upload

一些服务器通过添加斜杠重定向到正确的位置。尝试上传到:

http://localhost/administrator/upload/

【讨论】:

  • 你们有现场演示吗?您可以使用 fiddler (fiddler2.com) 来验证上传请求与其他浏览器中发出的请求有何不同。
  • 嗨@TomasKirda Bro,我也遇到了同样的问题,无法解决。你能帮忙吗?
猜你喜欢
  • 2015-12-29
  • 2015-10-08
  • 1970-01-01
  • 2011-11-21
  • 1970-01-01
  • 2014-06-29
  • 2016-09-18
  • 2023-03-21
  • 1970-01-01
相关资源
最近更新 更多