使用jsp+swfupload做上传时报Upload Error: 405错误

1. 使用SWFUpload上传文件最佳介绍


2.  异常分析 

   文件上传已经成功,但前台显示Upload Error: 405错误。

    启用debug,错误日志如下

---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
    upload_url:               /CK_FileUpload/simpledemo/../uploadFileServlet
    flash_url:                ../swfupload/swfupload.swf?preventswfcaching=1364112308737
    use_query_string:         false
    requeue_on_error:         false
    http_success:             
    assume_success_timeout:   0
    file_post_name:           Filedata
    post_params:              [object Object]
    file_types:               *.*
    file_types_description:   所有文件
    file_size_limit:          10 MB
    file_upload_limit:        100
    file_queue_limit:         0
    debug:                    true
    prevent_swf_caching:      true
    button_placeholder_id:    spanButtonPlaceHolder
    button_placeholder:       Not Set
    button_image_url:         /CK_FileUpload/simpledemo/images/TestImageNoText_65x29.png
    button_width:             65
    button_height:            29
    button_text:              <span class="theFont">Hello</span>
    button_text_style:        .theFont { font-size: 16; }
    button_text_top_padding:  3
    button_text_left_padding: 12
    button_action:            -110
    button_disabled:          false
    custom_settings:          [object Object]
Event Handlers:
    swfupload_loaded_handler assigned:  false
    file_dialog_start_handler assigned: false
    file_queued_handler assigned:       true
    file_queue_error_handler assigned:  true
    upload_start_handler assigned:      true
    upload_progress_handler assigned:   true
    upload_error_handler assigned:      true
    upload_success_handler assigned:    true
    upload_complete_handler assigned:   true
    debug_handler assigned:             true

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number:           SWFUPLOAD 2.2.0
SWF DEBUG: movieName:              SWFUpload_0
SWF DEBUG: Upload URL:             /CK_FileUpload/simpledemo/../uploadFileServlet
SWF DEBUG: File Types String:      *.*
SWF DEBUG: Parsed File Types:      
SWF DEBUG: HTTP Success:           0
SWF DEBUG: File Types Description: 所有文件 (*.*)
SWF DEBUG: File Size Limit:        10485760 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: 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: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /CK_FileUpload/simpledemo/../uploadFileServlet for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 425984. Total: 4240226
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 557056. Total: 4240226
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3801088. Total: 4240226
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3964928. Total: 4240226
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4240226. Total: 4240226
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 405.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: HTTP Error, File name: forkcms-3.4.4.zip, Message: 405
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_1
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_1
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /CK_FileUpload/simpledemo/../uploadFileServlet for File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 458752. Total: 2321739
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 622592. Total: 2321739
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 720896. Total: 2321739
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 2321739. Total: 2321739
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_1. HTTP Status: 405.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: HTTP Error, File name: CodeIgniter_2.1.3.zip, Message: 405


    希望遇到此错误的仁兄可以赐教。

 

转载于:https://www.cnblogs.com/yeahwell/archive/2013/03/24/5226051.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值