Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

If we drag and drop the folder (without any sub folder) then uploading is working fine. Also, if we browse the folder along with sub folder, its working fine. The same case on drag and drop action, the consoler error “Cannot read property type of undefined” thrown and uploading process has been prevented and select event will not be triggered.


@using Syncfusion.Blazor.Inputs

 

<SfUploader ID="UploadFiles" AutoUpload=false DirectoryUpload=true>

    <UploaderAsyncSettings SaveUrl=https://ej2.syncfusion.com/services/api/uploadbox/Save RemoveUrl=https://ej2.syncfusion.com/services/api/uploadbox/Remove></UploaderAsyncSettings>

<UploaderEvents ValueChange="OnChange" FileSelected="OnSelect"></UploaderEvents>

</SfUploader>

 

@code {

    private void OnChange(UploadChangeEventArgs args)

    {

    }

    public void OnSelect(SelectedEventArgs args)

    {

        //Triggers after selecting or dropping the files by adding the files in upload queue.

    }

}


Issue reproducing sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Uploader_sub_folder_issue-359622046

 

Replication procedure:

  1. Run the attached sample

  2. Drag and Drop the folder along with sub folder

  3. We can see the console error and select event will not be fired.

  4. Do again the same procedure with help of browse button.

  5. We can see the uploader which is working fine without any issues