Open Closed

Download file from wwwroot server #2804


User avatar
0
ahmadkharsah created
  • 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 Answer(s)
  • User Avatar
    0
    levees created

    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 created
    Support Team 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 v9.1.0-preview. Updated on November 11, 2024, 11:11