开发者

Limiting the number of selectable files in a Flash file upload dialog

Is this possible thro开发者_如何学JAVAugh flash?

I have to create a flash uploader where you can define the maximum number of files that can be selected.


No, this is not possible. If you allow multiple select in a file upload dialog you cannot control the number of files selected. The best you can do is warn the user ahead of time that only a limited number of files will be used, then prompt the user afterwards if they select too many, perhaps giving them the opportunity select which files they want to upload with a checkbox list.


It should be. It's not directly implementing.

Either you use multiple fields and have the user upload one file at a time using FileReference.

Either you use FileReferenceList, but let the user know, you will only upload the first files from the fileList array.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜