SfUploader Ability to Multiselect Files AND Folder

Hi Syncfusion Support,

the SfUploader has a Property "DirectoryUpload", which allows to select a folder including all files.

I want to achieve to be able to select Folders AND Files (in a Windows 10) like Explorer view:

ww.PNG

Is it possible to add this in a kind of control to SFUploader and for the filemanager ?

(For the Filemanager that would be control i would love to see. .. )

It would be great if you could provide it soon. Or do you know an workaround for that ?



3 Replies

GK Gunasekar Kuppusamy Syncfusion Team September 20, 2021 10:51 AM UTC

Hi Hakan,

Good day to you.

We have validated your reported queries with Uploader and FileManager components and please find the response below,

FileManager:
Currently we don’t have support for uploading folders with File Manager component. This support had already been considered as a feature and this will be included in any one of the upcoming releases.  
 
You can track the status through the below feedback link. 
 

Uploader:
By Uploader behavior, DirectoryUpload API only allows one type at a time .So we suggest you that use the CheckBox component to choose between Directory and File uploads.

Please refer the below sample code snippets. In this sample we have rendered the checkbox component with uploader component. When you enable/disable the checkbox then DirectoryUpload API value will change. You can easily control the Directory and File uploads with this.

Code snippets:
@page "/"
@using Syncfusion.Blazor.Inputs
@using Syncfusion.Blazor.Buttons

<div>DirectoryUpload </div>
<SfCheckBox @bind-Checked="@directryUpload"  TChecked="bool" />

<div class="col-lg-12 control-section">
    <div class="control_wrapper">
        <SfUploader ID="UploadFiles" DropArea=".control-fluid" AutoUpload="false" DirectoryUpload="@directryUpload">
            <UploaderAsyncSettings SaveUrl="https://aspnetmvc.syncfusion.com/services/api/uploadbox/Save" RemoveUrl="https://aspnetmvc.syncfusion.com/services/api/uploadbox/Remove"></UploaderAsyncSettings>
        </SfUploader>
    </div>
</div>

@code {
    public bool directryUpload { get; set; } = false;
}

Please check the solution and let us know if you have any concerns.

Regards,
Gunasekar



HU Hakan Uskaner September 20, 2021 11:38 AM UTC

Hi Gunasekar,


i thank you for your quick response.. I am happy to hear thats its already at the pipeline. I will follow that track status.. but i cant see any concrte timeline


Thank you for you sample. In the meanwhile i will use that.


For others who are interested in this feature please upvote at the given link :
https://www.syncfusion.com/feedback/10089/upload-folder-support-in-file-manager-component




GK Gunasekar Kuppusamy Syncfusion Team September 21, 2021 12:38 PM UTC

Hi Hakan,

Good day to you.

As we mentioned earlier, we will consider the feature and implement in the certain release based on the customer request count and priority. So, we will intimate you once the road map has been prepared. You can track the status of the feature from the feedback link.

Please upvote this feature to make this our priority. We will prioritize the features every release, based on the user demands.

Regards,
Gunasekar 


Loader.
Up arrow icon