I am using batchuploader that shows "Choose Files" label on button.

My requirement is to allow one file at a time and in that case the button label should be "Choose File" not "Choose Files"
I tried the below solution.
This should set the multiple selection to false but it;s not working. Any suggestions?
Thanks in advance.
My requirement is to allow one file at a time and in that case the button label should be "Choose File" not "Choose Files"
I tried the below solution.
Code:
batchUplaoder .addPreviewShownHandler(previewShownHandler -> { batchUploader.[HTML][/HTML]getUploadFileItem().getUploadItem().setMultiple(false); });
Thanks in advance.
Comment