﻿http://www.phptogether.com/uploadifydoc/
http://www.uploadify.com/download/
http://blog.csdn.net/caoyuan10036/article/details/7545968



UPLOADIFY V3.0的参数详解
下面的参数参数是必须的，当然插件也已经给他们赋上了必要的默认值

id       : jQuery(this).attr('id'), // 根据页面上绑定的对象来给uploadify设置id
swf      : 'uploadify.swf', // uploadify的上传功能是通过flash 来实现的，swf 是用来设置这个flash 的位置，这个flash 可以在下载的插件包里找到
uploader : 'uploadify.php', // 这个参数是当文件上传完以后调用的ＰＨＰ代码的地址

下面的参数是可选的
// Options
auto : false,　　　　// 设置选完文件是否自动上传
buttonClass     : '', // 可以为按钮自定义样式
buttonCursor    : 'hand', // 设置档鼠标移动到flash 上显示的图标
buttonImage     : '1111.jpg', // 设置按钮的图片
buttonText      : 'SELECT FILES', // 设置按钮上显示的文本
cancelImage     : 'uploadify-cancel.png', // 设置取消按钮的图片
checkExisting   : 'uploadify-check-existing.php', // 检查上传的文件时候已经存在
debug           : false, // uploadify de调试程序是否开启
fileObjName     : 'Filedata',
fileSizeLimit   : 0, // 设置文件的上传的大小，0为无穷大
fileTypeDesc    : 'All Files (*.*)',
fileTypeExts    : '*.*', // 设置文件上传时的文件类型
height          : 30, // 设置flash 的高度
method          : 'post', // 设置提交的方法
multi           : false, // 是否支付多文件一起上传
queueID         : false, //
queueSizeLimit  : 999,
removeCompleted : true,
removeTimeout   : 3,
requeueErrors   : false,
postData        : {}, // 设置上传是需要传入的参数
preventCaching  : true,
progressData    : 'percentage',
// simUploadLimit  : 1, // Not possible with swfUpload
successTimeout  : 30,
transparent     : true,
uploadLimit     : 999,
uploaderType    : 'html5', // the other option is 'flash' // 设置上传组件的类型
width           : 120, // 设置flash 的高度

'onSelect': function(file)  
        {  
        alert(file.name+"---"+file.id);  
        },// 选择文件时触发的方法 
        
        'onUploadError' : function(file, errorCode, errorMsg, errorString) {
            alert('The file ' + file.name + ' could not be uploaded: ' + errorString);
        },//上传出错后的方法
        
        'onUploadSuccess' : function(file, data, response) {
            alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
        },//上传成功后的方法

