New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Directory Upload
The Telerik UI Upload for ASP.NET Core has an option to enable users to upload whole directories of files through dragging and dropping them over the Upload.
When the Telerik UI Upload for ASP.NET Core is configured for directory upload the user is allowed to select only folders for upload. Files cannot be selected. In browsers that do not support the directory feature, the behavior falls back to the default file selection. The directory upload feature is only supported by browsers that support HTML5 directory and DataTransferItem features.
The following example demonstrates how you can enable the Directory
upload feature for the Telerik UI Upload for ASP.NET Core :
Razor
@(Html.Kendo().Upload()
.Name("files")
.Async(a => a
.Save("Directory_Upload", "Upload")
.Remove("Directory_Remove", "Upload")
.AutoUpload(false)
)
.Directory(true)
.DirectoryDrop(true)
)