我试图在我的网站上使用 swfupload 并严格按照所有说明进行操作。现在,当我选择一个文件时,我看到的只是待处理......它永远不会再进一步。这是我的实现
var swfu = new SWFUpload({
upload_url : "urtupload.php",
flash_url : "swfupload/swfupload.swf",
flash9_url : "swfupload/swfupload_fp9.swf",
post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"},
file_size_limit : "100 MB",
file_types : "*.zip;*.arj;*.rar;*.tar.gz;*.tgz",
file_types_description : "All Files",
file_upload_limit : 100,
file_queue_limit : 1,
file_post_name : "Filedata",
custom_settings : {
progressTarget : "fsUploadProgress",
cancelButtonId : "btnCancel"
},
debug:false,
// Button settings
button_image_url: "images/ub.png",
button_width: "61",
button_height: "22",
button_placeholder_id: "spanButtonPlaceHolder",
button_text_style: ".theFont { font-size: 16; }",
button_text_left_padding: 12,
button_text_top_padding: 3,
moving_average_history_size: 40,
// The event handler functions are defined in handlers.js
// The event handler functions are defined in handlers.js
swfupload_preload_handler : preLoad,
swfupload_load_failed_handler : loadFailed,
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
queue_complete_handler : queueComplete
});