multipart-upload-example
aws-sdk-go-v2 multipart upload poc
There are 2 examples of uploading multipart with aws-sdk-go-v2:
- Manually, starting by calling s3Client.CreateMultipartUpload
- S3 Manager, a feature implemented by S3
How to run the code
-
git clone the repo
-
populate your AWS credentials in ~/.aws/config
-
chdir into either the manual_multipart or manager directories
-
find a file that you would like to upload and update the const variables at the top
-
within the example directory, run:
go run .
-
look in the s3 bucket and find the uploaded file