Hi Sabby,
It is possible to set the MultipleFileSelection mode using JavaScript. Please have a look into the following JavaScript code.
JavaScript:
If the _multipleFileSelection property value is set to 1, then the selection mode is set to Automatic. If the same property value is 0, then the MultipleFileSelection mode is disabled.
Thanks,
Princy.