You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
v1.10.6
Version of Go (go version)?
go1.8 windows/amd64
What issue did you see?
The upload function from the s3manager returns an URL encoded location (UploadOutput.location) if a bigger file (>5MB) is uploaded. For smaller files (<5MB) the location is not URL encoded which in my opinion is the right behaviour.
I guess the behaviour is different for multipart uploads and singlepart uploads.
Steps to reproduce
// filesize = 5 * 1024 * 1024 Byte
uploader = s3manager.NewUploader(sess)
output, err := uploader.Upload(&s3manager.UploadInput{
Bucket: aws.String("mybucket"),
Key: aws.String("1234"),
Body: bufio.NewReader(file),
})
fmt.Println(output.Location) // should NOT be URL encoded