器端用 request.getParameter(“param”)就可以拿到值
post_params: {"param" : "uploadParams"},
上传文件的最大空间
file_size_limit : "200MB",
允许上传文件的类型,*.*是所有,*.txt只能上传文本
file_types : "*.*",
这个就服务器端要获得的文件的属性,相当于file的name
file_post_name: "uploadFile",
所有文件夹
file_types_description : "All Files",
上传文件选取的最大队列数
file_upload_limit : 50,
file_queue_limit : 0,
下面是上传按钮的设置
button_image_url: "images/TestImageNoText_65x29.png",
button_width: "65",
button_height: "29",
button_placeholder_id: "spanButtonPlaceHolder",
button_text: '<span class="theFont">浏 览</span>',
button_text_style: ".theFont { font-size: 12; }",
button_text_left_padding: 12,
button_text_top_padding: 3,
下面是上传事件和函数:
选择完文件后就触发
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
下面看看 html 代码: