Category

.NET MVC CORE

7 stories
J
Joynal Abedin

How to Upload Images from a .NET Backend to Cloudflare R2 and Store the Image URL

Modern applications often need to store user-uploaded images such as profile pictures, food photos, receipts, invoices, or product images. While storing files directly on your web server works initially, it becomes difficult to manage as your application grows. A better solution is to use cloud object storage. Cloudflare R2 is a cost-effective, scalable object storage service that is compatible with Amazon S3 APIs and provides global access to uploaded files.

8
How to Upload Images from a .NET Backend to Cloudflare R2 and Store the Image URL
J
Joynal Abedin

Migrations in ASP Dot Net Core

In ASP.NET Core MVC, \"migration\" refers to the process of updating your database schema to reflect changes in your Entity Framework Core (EF Core) data model. This involves creating, applying, and managing changes to t...

5
J
Joynal Abedin

How i will support xml data in API request dotnet ?

Go to the Program.cs file and edit this same as below code: var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(option => { option.ReturnHttpNotAc...

5
J
Joynal Abedin

Delete API with status code

[ProducesResponseType(StatusCodes.Status204NoContent)] [ProducesResponseType(StatusCodes.Status404NotFound)] [ProducesResponseType(StatusCodes.Status400BadRequest)] [HttpDelete(\"{...

5
J
Joynal Abedin

Post API function with status code

[HttpPost] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status400BadRequest)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] ...

5
J
Joynal Abedin

Error \"System.Invalid OperationException has been thrown\"

For solving this issue write outside of your class [Route(\"api/VillaAPI\")] using System; using Microsoft.AspNetCore.Mvc; using Villaa_API.Models; namespace Villaa_API.Controllers { [Route(\"api/VillaAPI\")] ...

5