gpt4 book ai didi

javascript - SWFUPLOAD 停留在挂起状态

转载 作者:行者123 更新时间:2023-11-30 18:51:48 24 4
gpt4 key购买 nike

我正在尝试在我的网站上使用 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
});

最佳答案

在您的方法中:fileDialogComplete(),确保您拥有 Javascript:

this.swfupload('startUpload');

这将告诉您的 SWFU 实例开始上传。

如果您正在使用示例代码(看起来可能是),请务必同时使用/包含文件“handlers.js”(http://demo.swfupload.org/v220/simpledemo/js/handlers.js)

祝你好运!

关于javascript - SWFUPLOAD 停留在挂起状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3630676/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com