ASP.NET Web API | File Upload and Download | .NET 7.0
VloĆŸit
- Äas pĆidĂĄn 25. 04. 2023
- ASP.NET Web API | File Upload and Download
Create a minimal API project in Visual Studio 2022.
đ» GitHub: github.com/shahedbd/API.FileP...
đ Table of Contents:
- Create API Project using Visual Studio
- Create Upload and Download Service
- Add Custom Services in Program.cs
- Access File Directory
- Run and Test Project
đ My Profile:
1.envato.market/7mA73y
â Business ERP Solution/Product/POS/Company Management:
1.envato.market/AoMzyj
â School/College/University Management ERP:
1.envato.market/15NBrd
â Dashboard Template | ASP.NET Core MVC Web Starter Kit
1.envato.market/JrEGWa
â Advance POS System with Stock Manager | ASP.NET Core | EF Core | .NET Core 6.0:
1.envato.market/9WQxbW
â Asset Management System with Barcode | ASP.NET Core | EF Core | .NET Core 6.0:
1.envato.market/qnNkey
â Advanced Files & Users Management | ASP.NET Core | EF Core | .NET Core | MSSQL | MySQL:
1.envato.market/DVaRBq
â Hospital and Pharmacy Management System | ASP.NET Core | EF Core:
1.envato.market/OR5o6N
â Inventory and User Management System:
1.envato.market/jW221P
â Invoice Gen(Invoice Generation and Management) using .Net Core and EF:
1.envato.market/0JOOm3
â Complaint | Issue | Helpdesk Ticket | My Ticket HelpDesk Support System | ASP.NET Core | EF Core:
1.envato.market/MXjj5P
â User Management:
1.envato.market/WDE2JO
â ASP.NET Core CRUD Operation Using Dot Net 6.0 | MVC| MSSQL | MySQL | EF Core Code First | jQuery
1.envato.market/b3Yeg9
â ASP.NET Core full CRUD with .NET 5 | MSSQL/MySQL | EF code first:
1.envato.market/OR551W
â Staff | Employee Leave Management System
1.envato.market/rnjYzd
â Library Management System | ASP.NET Core | MSSQL | Code First
1.envato.market/YgWWgR
Previous Video:
â .NET 7 Web API đ JWT Authentication and role-based Authorization
âą .NET 7 Web API đ JWT A...
â .NET 7 Web API đ | JWT đ Authentication With Refresh Tokens Using ASP.NET Core | MSSQL
âą .NET 7 Web API đ | JWT...
â Step by Step đ ASP.NET Web API Generic CRUD Operation
âą Step by Step đ ASP.NET...
â ASP.NET Web API: Playlist
âą ASP.NET Web API
Thank you kind sir
Thank you very much for posting content like this, would it be possible to download the file through Get / downloadfile or through Swagger?
Does it work only when using a web browser? I tried to run this on Postman and only got the file content as a response. No download. Is there a way to download to a shared folder on
the web server?
Thank you for reaching out. I understand you're facing some challenges with downloading files using Postman. It seems like the response is providing the file content but not initiating a download.
To address this issue, you might want to check the following:
Headers: Ensure that the response headers include the Content-Disposition header with a value like "attachment; filename=your_filename.ext". This header instructs the browser (or any client) to prompt the user to download the file.
Postman Settings: In Postman, make sure that the "Send and Download" option is selected in the "Body" tab for your request.
File Type: Ensure that the file type is set correctly in the headers and that the file extension matches the actual file type.
Very good. Try to make a tutorial step by step about Document Management System or Another mini Proyect with login and authorization.
Great
Can you make another video about uploading to Azure Blob ?
Thanks
How we can connect this with react
You have to build the FE project separately and just use this as API.