Download file from a shared folder on network using Blazor RRS feed

  • Question

  • User-941767363 posted
    I am developing a Blazor application (Blazor Server app - .NET Core 3.1) and i want to download documents from a server shared folder (intranet application)
    How can I do it? What is the best way?
    Tuesday, July 7, 2020 4:19 PM

All replies

  • User-474980206 posted

    the best is to render a list of links:

        @foreach (var doc in documents)
            <li><a href="@doc.Url" download>@doc.Description</a></li>

    Tuesday, July 7, 2020 5:38 PM
  • User-941767363 posted


    thank you for the reply.

    Your solution works fine with Chrome only if I install/enabled the "Local file link" extension otherwise, Chrome doesn't allow to download documents from shared folder.


    Wednesday, July 8, 2020 8:30 AM
  • User-474980206 posted

    that how browsers work. typically you supply a server url (proxy) that can do a http download. 

    Wednesday, July 8, 2020 4:01 PM