I have a blazor server app which generates xml files to a specific directory. I am displaying the list of files on a table to make it downloadable but it doesn't work.
@if (Files != null)
{
<table class="table">
<thead>
<tr>
<th>Files</th>
<th> </th>
</tr>
</thead>
<tbody>
@foreach (var item in Files)
{
<tr>
<td>@item.Name </td>
<td> <a href="@item.FullName" download>Download</a> </td>
</tr>
}
</tbody>
</table>
}