欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

swfupload 多文件上传实现代码

程序员文章站 2022-07-10 23:43:21
var swfu; window.onload = function() { var settings = { flash_url : "js/swfupload_f9.s...
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);
};