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!>
Thanks for joining our community and helping improve Syncfusion products!
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:
Run the attached sample
Drag and Drop the folder along with sub folder
We can see the console error and select event will not be fired.
Do again the same procedure with help of browse button.
We can see the uploader which is working fine without any issues