为什么我从官方下载的DEMO不能用,运行后就出现一个Select images的按钮,但是点这个按钮没有任何反应
下载了两个版本都是同样的情况,我仔细看了代码中的文件路径都没错
下面是default.aspx中的JS代码,没做改动var swfu;
window.onload = function () {
swfu = new SWFUpload({
// Backend Settings
upload_target_url: "upload.aspx", // Relative to the SWF file // File Upload Settings
file_size_limit : "2048", // 2MB
file_types : "*.jpg",
file_types_description : "JPG Images",
file_upload_limit : "0",    // Zero means unlimited
begin_upload_on_queue : true, // Event Handler Settings
file_queued_handler : fileQueued,
file_progress_handler : fileProgress,
file_cancelled_handler : fileCancelled,
file_complete_handler : fileComplete,
queue_complete_handler : queueComplete,
//queue_stopped_handler : queueStopped,
//dialog_cancelled_handler : fileDialogCancelled,
error_handler : uploadError, // Flash Settings
flash_url : "swfupload.swf", // Relative to this file
flash_container_id : "theflashgohere", // UI Settings
ui_container_id : "swfu_container",
degraded_container_id : "degraded_container", // Debug Settings
debug: false
});
swfu.addSetting("upload_target", "divFileProgressContainer");
}

解决方案 »

  1.   

    我用过,没有问题,点Select images可以选择文件,也可以一次性选择多个。
      

  2.   

    我改debug:true后的提示:SWF DEBUG: SWFUpload Init Complete
    SWF DEBUG: 
    SWF DEBUG: ----- SWF DEBUG OUTPUT ----
    SWF DEBUG: ControlID:              SWFUpload_0
    SWF DEBUG: Upload Target URL:      upload.aspx
    SWF DEBUG: Begin Upload on Queue:  true
    SWF DEBUG: Validate Files:         false
    SWF DEBUG: File Types String:      *.jpg
    SWF DEBUG: Parsed File Types:      jpg
    SWF DEBUG: File Types Description: JPG Images (*.jpg)
    SWF DEBUG: File Size Limit:        2048
    SWF DEBUG: File Upload Limit:      0
    SWF DEBUG: File Queue Limit:       0
    SWF DEBUG: Post Params:
    SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
    SWF DEBUG: 
    Flash called back and is ready.
    ----- DEBUG OUTPUT ----
    ID: SWFUpload_0
    control_id: SWFUpload_0
    ui_function: { 
    }
    ui_container_id: swfu_container
    degraded_container_id: degraded_container
    upload_target_url: upload.aspx
    file_post_name: Filedata
    post_params: { 
    }
    begin_upload_on_queue: true
    use_server_data_event: true
    validate_files: false
    file_types: *.jpg
    file_types_description: JPG Images
    file_size_limit: 2048
    file_upload_limit: 0
    file_queue_limit: 0
    flash_url: swfupload.swf
    flash_width: 1px
    flash_height: 1px
    flash_color: #FFFFFF
    debug_enabled: true
    ----- DEBUG OUTPUT END ----点击按钮提示:
    Could not call browse: [object Error]
      

  3.   

    ~~>_<~~
      

  4.   

    沒弄通 swfupload 控件, 最后只好使用 NeatUpload 來代替..
      

  5.   

    swfupload 要检查flash的版本
      

  6.   

    Uploadify