Just to follow up on this: We've now modified the defaults for this FileItem in the framework to mark it as multiple:false
(The change will be present in 12.0 / 12.1 nightly builds dated Jan 9 and above)
Regards
Isomorphic Software
Announcement
Collapse
No announcement yet.
X
-
Thanks Blama ,
Your suggested solution worked.
Code:FileItem fileItem = new FileItem(); fileItem.setMultiple(false); batchUploader.setAutoChildProperties("uploadFileItem", fileItem);
Leave a comment:
-
Thanks Blama . This component allow to select more than one files and shows the count like given in screenshot. But it only uploads one file. So I just want to show button label as "Choose File" instead of "Choose Files" and allow to select one file only.
Leave a comment:
-
Hi preeti_kanyal,
this is an autoChild. Please see this code here (v12.0p_2019-12-14) to see how it is working in SmartClient - SmartGWT should be the same with setAutoChildProperties().
Isomorphic: Perhaps this should be the default, as uploading two files does not work anyway.Code:isc.BatchUploader.create({ height: 400, width: "100%", uploadDataSource: supplyItemCustom, uploadFileItemProperties: { multiple: false } });
Best regards
Blama
Leave a comment:
-
BatchUploader file input button text showing "Select Files"
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?Code:batchUplaoder .addPreviewShownHandler(previewShownHandler -> { batchUploader.[HTML][/HTML]getUploadFileItem().getUploadItem().setMultiple(false); });
Thanks in advance.Tags: None
Leave a comment: