• 技术文章 >后端开发 >php教程

    swfupload 多文件上传实现代码_PHP

    2016-06-01 12:24:58原创364
    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);
    };
    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    专题推荐:swfupload 多文件上传
    上一篇:PHP Mysql编程之高级技巧_PHP 下一篇:php mysql索引问题_PHP
    VIP课程(WEB全栈开发)

    相关文章推荐

    • 【活动】充值PHP中文网VIP即送云服务器• 整理总结nginx、php-fpm和mysql等的权限划分• php url地址重写的有关问题 • js 弹窗出现乱码了解决方案 • .htaccess怎么解决网站首页url的有关问题 • 拾掇活:PHP的日期时间函数date()
    1/1

    PHP中文网