Here Mudassar Khan has explained with an example, how to download files from Folder (Directory) using jQuery in ASP.Net Core Razor Pages.
The files will be downloaded as BLOB using jQuery AJAX and XmlHttpRequest (XHR) and then will be sent for download in the Browser using jQuery.