zoukankan      html  css  js  c++  java
  • 使用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_             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


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


    作者:沙漏哟
    出处:计算机的未来在于连接
    本文版权归作者和博客园共有,欢迎转载,请留下原文链接
    微信随缘扩列,聊创业聊产品,偶尔搞搞技术
  • 相关阅读:
    vue与laravel
    php artisan 命令
    HTTP 状态码
    PhpStorm提高效率的使用方法及设置
    好RESTful API的设计原则
    laravel 入门基础之安装
    c++ sizeof(字符数组)
    new delete/delete[] 测试
    linux g++ 查找动态链接库
    linux下定时器耗时研究
  • 原文地址:https://www.cnblogs.com/yeahwell/p/5226051.html
Copyright © 2011-2022 走看看