Serve Static Files Outside wwwroot in ASP.NET Core – Session9

preview_player
Показать описание
Through this change, your default Static File container (wwwroot) will not be available anymore. Hence, for solving this issue and having both folder available for Static Files, you need to add one more UseStaticFiles middleware.

Static File Outside wwwroot with UseFileServer Middleware
Implementation of this change for UseFileServer Middleware is almost same as UseStaticFiles middleware. Just you need to create an object of FileServerOptions instead of StaticFileOptions. Then the rest of steps are same as each other.
Also for having access to both static files containers (wwwroot and newly created folder), we need to add UseFileServer middleware.

Tutorial Playlist

Our Social Media

Text Version of course:
Рекомендации по теме
Комментарии
Автор

very very thank sir this video i'm try to find 🥰

phuccute