Open wilz055 opened 2 weeks ago
All the provided samples (code pieces, example implementation) should map 1:1 to minimal APIs. Just replace services
with builder.Services
and endpoints with app.Map...
.
I tried your examples, to upload file to s3, its throwing service not registered error in .net core 8.0. If you could add some sample code to consume, would be more helpful added
builder.Services.AddAmazonS3(builder.Configuration.GetSection("AmazonS3"));
services.AddUploadNet()
.AddAwsS3Provider("public", options =>
{
options.BucketName = "public-images";
});
like
endpoint.MapPost( IFormFile file , StorageManager _storageManager)
await _storageManager.CreateFile("public", "users/1553/profile.png", inputStream);
Could you please provide any examples using minimal api for file upload.