FileResult
FileResult is a type in the ASP.NET Core MVC framework that represents a file to be downloaded by the client. It is an action result that, when returned from a controller action, instructs the browser to download a file. This is distinct from returning a view, which renders HTML content.
When a controller action returns a FileResult, the response sent back to the client includes specific HTTP
There are several concrete implementations of FileResult available, including FileContentResult, FilePathResult, and FileStreamResult. FileContentResult allows you
Using FileResult is a common pattern for implementing file download functionality in web applications, such as