swfupload 多文件上传实现代码
程序员文章站
2022-04-09 08:34: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);
};
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);
};
上一篇: Java之mybatis详解
下一篇: PHP中常用数组处理方法实例分析