How to restrict uploading multiple files at the same time?

User should be able to select only one file to upload. We are using Azure blob.


1 Reply

SM Shalini Maragathavel Syncfusion Team September 2, 2021 11:55 AM UTC

Hi Yamini, 

Greetings from Syncfusion support. 

Based on your query, we could understand that you need to select only one file for upload operation in File Manager. You can achieve your requirement by setting multiple property of uploadObj as false in the created event of File Manager as demonstrated in the below code snippet. 
App.component.html 
<ejs-filemanager  (created)='created($event)' [ajaxSettings]='ajaxSettings' [view]='view'> 
        </ejs-filemanager> 
---------------------------------------------------------------------- 
App.component.ts 

export class AppComponent { 
   
  created() { 
    this.file.uploadObj.multiple = false; 
  } 

Please find the below sample for your reference.
 

Please get back to us if you need further assistance.

Regards, 
Shalini M. 


Loader.
Up arrow icon