Skip to content

Instantly share code, notes, and snippets.

@staff0rd
Created September 24, 2020 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staff0rd/c0bee3791d76ee69c399c41579693f58 to your computer and use it in GitHub Desktop.
Save staff0rd/c0bee3791d76ee69c399c41579693f58 to your computer and use it in GitHub Desktop.
local-amazon-s3-05
public async Task<IActionResult> Upload([FromServices] IAmazonS3 s3)
{
await new TransferUtility(s3)
.UploadAsync(source, "my-bucket", "some/path/image.jpg");
return Ok();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment