File Download from ASP.NET 5.0 Web API [With only one line of code]
DotNet Core Central
0:00 / 0:00
File Download from ASP.NET 5.0 Web API [With only one line of code]
23 594 просмотра · 5 лет назад
DotNet Core Central
29 тыс. подписчиков
23 594 просмотра · 5 лет назад
In this video, I am going to walk through how we can use out of box features of ASP.NET 5.0 Web API to allow file download from an ASP.NET Core Web API Application.
In this video, I will cover a couple of topics:
1. Create an HTTP GET method in Web API to allow file download (a CSV file)
2. Create an HTML/JavaScript page to allow calling of the Web API to download the CSV file
In this video, I will be using the Static file feature of ASP.NET Core. I have done a video in the past to explain how to expose static files in ASP.NET code, here is the link to that video: • How to serve Static Files (in ASP.Net Core...
The URL to my website is: https://dotnetcorecentral.com/
The URL to my GitHub repo is: https://github.com/choudhurynirjhar
If you want to buy me a coffee, you can visit this: https://www.buymeacoffee.com/dotnetco...
Few of my popular downloads:
C# 9 Features: • My favorite new features in C# 9 (.NET 5)
RabbitMQ with .NET Core: • RabbitMQ in .NET Core (Part 1, Single prod...
Ocelot API Gateway: • How to build an API Gateway in ASP.NET Cor...