日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2025/7/25 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 使用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

總結

以上是生活随笔為你收集整理的使用jsp+swfupload做上传时报Upload Error: 405错误的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。