swfupload 多文件上传实现代码

时间:2021-05-26

var swfu;
window.onload = function() {
var settings = {
flash_url : "js/swfupload_f9.swf", //flash地址
upload_url: "upload.php", //上传文件处理地址
post_params: {"PHPSESSID" : "“},
file_size_limit : “1000″, //大小限制 默认单位为kb
file_types : “*.jpg;*.gif;*.png;*.swf”,//文件类型
file_types_description : “Web Image Files”,//文件类型描述
file_upload_limit : 100,//上传文件限制
file_queue_limit : 0,
custom_settings : {
progressTarget : “fsUploadProgress”,
cancelButtonId : “btnCancel”
},
debug: false,

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
};

swfu = new SWFUpload(settings);
};

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章