开发者

swfupload limit the number of uploaded files

开发者 https://www.devze.com 2023-03-18 09:53 出处:网络
Is there a开发者_StackOverflow中文版nyway to limit the number of uploaded files in swfupload ?

Is there a开发者_StackOverflow中文版nyway to limit the number of uploaded files in swfupload ? If there is no such setting in swfupload how can I check that number ?

Thanks


You can restrict the number of uploaded files using 'file_upload_limit' property in the setting object. eg:

var swfu = new SWFUpload({
    upload_url : "http://www.swfupload.org/upload.php",
    flash_url : "http://www.swfupload.org/swfupload.swf",
    file_upload_limit: "10" // limit uploads to 10 files
});

You can use setFileUploadLimit(file_upload_limit) method to dynamically modify this setting.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号