打开 关闭

Download file from wwwroot server #2804


User avatar
0
ahmadkharsah 创建
  • ABP Framework version: latest
  • UI type: MVC
  • DB provider: EF Core

Hello, I'm building app on abp.io platform, that get data from external source and save the result on server, then the user can download the pdf file. Getting the data and saving it going well, but I'm not able to download the file from the server using the usual ways on asp.net core .. is there any special way for abp.io platform?

Note: files are stored in wwwroot folder.


2 答案
  • User Avatar
    0
    levees 创建

    Abp is no different from normal asp.net core if you added app.UseStaticFiles(); in OnApplicationInitialization method in {WebApp}Module you may check the documents https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-6.0

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    As @levees said, you can check the Microsoft document.

    I'm closing the question, reopen if still not working.

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11