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.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

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

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.