Я использовал это в Startup.cs внутри Configure:
app.UseFileServer(new FileServerOptions()
{
FileProvider = new PhysicalFileProvider(env.ContentRootPath + "/Albums"),
RequestPath = new PathString("/Albums"),
EnableDirectoryBrowsing = true
});
А из модели, которая должна его использовать:
Initialize(_environment.WebRootPath + "/Albums");