问题DEBUG现像
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1241. Total: 1241
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 404.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: HTTP Error, File name: 新建 文本文档.txt, Message: 404找了一些资料,都说是由于FLASH找不到upload_url,要用绝对路径。
但是改了也不好用,而且我把代码换到XP下却好用。
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1241. Total: 1241
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 404.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: HTTP Error, File name: 新建 文本文档.txt, Message: 404找了一些资料,都说是由于FLASH找不到upload_url,要用绝对路径。
但是改了也不好用,而且我把代码换到XP下却好用。
var swfu; window.onload = function() {
var settings = {
flash_url: "swfupload/swfupload.swf",
upload_url: "upload.php", // Relative to the SWF file
post_params: { "PHPSESSID": "<?php echo session_id(); ?>" },
file_post_name: "Filedata", // 文件对象的名称,默认Filedata,可以自己改.后台接收就靠它识别
file_size_limit: "1024 MB",
file_types: "*.*",
file_types_description: "All Files",
file_upload_limit: 0,
file_queue_limit: 1,
custom_settings: {
progressTarget: "fsUploadProgress",
cancelButtonId: "btnCancel"
},
debug: true, // Button settings
button_image_url: "images/TestImageNoText_65x29.png", // Relative to the Flash file
button_width: "65",
button_height: "29",
button_placeholder_id: "spanButtonPlaceHolder",
button_text: '<span class="theFont">选择文件</span>',
button_text_style: ".theFont { font-size: 12; }",
button_text_left_padding: 12,
button_text_top_padding: 3, file_dialog_start_handler: fileDialogStart,
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
}; swfu = new SWFUpload(settings);
};