فتح مغلق

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