Swfupload Error Code: -200 Message: 500

先貼出Swupload 的debug信息

---SWFUpload Instance Info---
Version: 2.5.0 2010-01-15 Beta 2
Movie Name: SWFUpload_0
Settings:
    upload_url:               /upload/execute.th
    flash_url:                /framework/public/swfupload/swfupload.swf?preventswfcaching=1508318931641
    flash9_url:                swfupload_fp9.swf?preventswfcaching=1508318931641
    use_query_string:         false
    requeue_on_error:         false
    http_success:             
    assume_success_timeout:   0
    file_post_name:           upload
    post_params:              [object Object]
    file_types:               *.*
    file_types_description:   All Files
    file_size_limit:          10240 MB
    file_upload_limit:        0
    file_queue_limit:         1
    debug:                    true
    prevent_swf_caching:      true
    button_placeholder_id:    spanButtonPlaceholder
    button_placeholder:       Not Set
    button_image_url:         /framework/public/images/XPButtonUploadText_61x22.png
    button_width:             61
    button_height:            22
    button_text:              
    button_text_style:        color: #000000; font-size: 16pt;
    button_text_top_padding:  0
    button_text_left_padding: 0
    button_action:            -110
    button_cursor:            -1
    button_disabled:          false
    custom_settings:          [object Object]
Event Handlers:
    swfupload_preload_handler assigned:  false
    swfupload_load_failed_handler assigned:  false
    swfupload_loaded_handler assigned:  true
    mouse_click_handler assigned:       false
    mouse_over_handler assigned:        false
    mouse_out_handler assigned:         false
    file_dialog_start_handler assigned: true
    file_queued_handler assigned:       true
    file_queue_error_handler assigned:  true
    upload_resize_start_handler assigned:      false
    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
Support:
    Load:                     Yes
    Image Resize:             Yes

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Version:                2.5.0 2010-02-17 Beta 3
SWF DEBUG: movieName:              SWFUpload_0
SWF DEBUG: Upload URL:             /upload/execute.th
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:        10737418240 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       1
SWF DEBUG: Post Params:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Stage Resize:61 by 22
SWF DEBUG: Button Image Loaded
SWF DEBUG: Stage Resize:61 by 22
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: Global Post Item: props.type=groupfile
SWF DEBUG: Global Post Item: mongohost=210.51.13.173
SWF DEBUG: Global Post Item: upload_successful=true
SWF DEBUG: Global Post Item: dbname=filesdb
SWF DEBUG: Global Post Item: props.groupid=ADELE-20170629004
SWF DEBUG: Global Post Item: progress_target=fsUploadProgress
SWF DEBUG: Global Post Item: ext=.txt
SWF DEBUG: Global Post Item: props.uploaderid=20080629-99999
SWF DEBUG: Global Post Item: props.gfiletype=filesale
SWF DEBUG: Global Post Item: props.uploader=系統管理員
SWF DEBUG: Global Post Item: dataSource=210.51.13.173
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for standard upload.  Starting upload to /upload/execute.th 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: 1549. Total: 1549
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 500.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: -200, File name: logo.txt, File size: 1549, Message: 500

本地上傳,IE 、firefox 上都測試了 沒問題,部署到服務器上面之後

23b515a57d19d3460669efad9e7258a3.png-wh_

頁面function

488d66619f5c4d639f0413a09e40be45.png-wh_

js執行方法

05251848312c66cd48f63c448fa20c4f.png-wh_

經過好長時間的排查,跟mod_security,session,CooKie,flash跨域,都沒有關係

回過頭來仔細一想,既然本地都可以,服務器上的不行,問題肯定出現在了服務器上

4a24ca0dc95f2c3d9930bae069b60ab1.png-wh_

既然程序這塊肯定沒問題,估計就是配置的問題了

在瀏覽相關貼子的時候發現

ebf78cd9832859e652c5e32a3856a370.png-wh_

找到struts的配置

b031cfe607fde63277ed30be963c8c1f.png-wh_

給tmp目錄賦權限之後,果然就可以了~

鬱悶,一個不小心,診斷了好長時間

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章