使用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


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

 

posted @ 2013-03-24 16:25  沙漏哟  阅读(276)  评论(0编辑  收藏  举报