Created
September 24, 2020 05:21
-
-
Save staff0rd/c0bee3791d76ee69c399c41579693f58 to your computer and use it in GitHub Desktop.
local-amazon-s3-05
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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