You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/file-downloads.md
+1-16Lines changed: 1 addition & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,22 +16,6 @@ This article explains how to download files in Blazor apps.
16
16
17
17
## File downloads
18
18
19
-
Files can be downloaded from the app's own static assets or from any other location:
20
-
21
-
:::moniker range=">= aspnetcore-9.0"
22
-
23
-
* ASP.NET Core apps use Map Static Assets routing endpoint conventions or Static File Middleware to serve files to clients of server-side apps. For more information, see <xref:blazor/fundamentals/static-files>.
24
-
* The guidance in this article also applies to other types of file servers that don't use .NET, such as Content Delivery Networks (CDNs).
25
-
26
-
:::moniker-end
27
-
28
-
:::moniker range="< aspnetcore-9.0"
29
-
30
-
* ASP.NET Core apps use [Static File Middleware](xref:blazor/fundamentals/static-files) to serve files to clients of server-side apps.
31
-
* The guidance in this article also applies to other types of file servers that don't use .NET, such as Content Delivery Networks (CDNs).
32
-
33
-
:::moniker-end
34
-
35
19
This article covers approaches for the following scenarios, where a file shouldn't be opened by a browser but downloaded and saved on the client:
36
20
37
21
*[Stream file content to a raw binary data buffer on the client](#download-from-a-stream): Typically, this approach is used for relatively small files (\< 250 MB).
@@ -265,6 +249,7 @@ For more information on CORS with ASP.NET Core apps and other Microsoft products
0 commit comments