. Initiates a multipart upload using the AmazonS3Client.initiateMultipartUpload method, and passes in an InitiateMultipartUploadRequest object.
Uploading a File to AWS S3. The example shows how to upload a local file onto an S3 bucket using the Go AWS SDK. It’s quite straight forward once you have your session setup and we’ve create an AddFileToS3 function which can be called multiple times when wanting to upload many files. Within the PutObjectInput you an specify options.
![File File](/uploads/1/2/5/6/125616700/546299263.png)
Saves the upload ID that the AmazonS3Client.initiateMultipartUpload method returns. You provide this upload ID for each subsequent multipart upload operation. Uploads the parts of the object. For each part, you call the AmazonS3Client.uploadPart method. You provide part upload information using an UploadPartRequest object. For each part, saves the ETag from the response of the AmazonS3Client.uploadPart method in a list.
You use the ETag values to complete the multipart upload. Calls the AmazonS3Client.completeMultipartUpload method to complete the multipart upload.