Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

9 Comments

  1. Hi Mukesh,
    How can we check if the file uploaded properly before we move on to the next thing? Let’s say we have to perform a certain task after uploading. But need to make sure the file is uploaded correctly before doing so. How should we do that?

  2. Nice well written document.

    Instead of injecting the IAmazonS3 interface into the constructor of the controller, I think you can use:

    [HttpPost(“create”)]
    public async Task CreateBucketAsync(string bucketName, [FromServices] IAmazonS3 s3Client)
    var bucketExists = await s3Client.DoesS3BucketExistAsync(bucketName);

  3. Great example, but when I deploy it to lambda it doesn’t work, just returns a corrupt file are there any configurations required?