加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

swfupload 多文件上传实现代码

发布时间:2020-12-13 05:27:03 所属栏目:PHP教程 来源:网络整理
导读: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_typ

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读