Tag

dotnetmvc

2 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.

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

How i will pass parameter & set it's type in API?

[HttpGet(\"{id:int}\")] public VillaDTO GetVilla(int id) { return VillaStore.villasList.FirstOrDefault(u => u.Id == id); } Here i set id which type int and passed the int type id ...

2