To enable folder selection in the ASP.NET Core Uploader component, you can set the
directoryUpload property to
true. This allows users to upload files by selecting a folder, as demonstrated in the example below:
<ejs-uploader id="UploadFiles" directoryUpload="true"></ejs-uploader> |
However, regarding your requirement to display the path of the selected folder in a text box, modern web browsers restrict access to the complete file path of uploaded files due to security and privacy concerns. This restriction is designed to prevent exposing sensitive information about the user's directory structure. As a result, only the file names and data can be accessed from uploaded files.