Skip to content

Commit

Permalink
false alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Jul 3, 2024
1 parent 8cf0204 commit 53fbb7c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkg/pipeline/sink/uploader/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,10 @@ func (u *S3Uploader) upload(localFilepath, storageFilepath string, outputType ty
return "", 0, errors.ErrUploadFailed("S3", err)
}

var contentType string
switch outputType {
case types.OutputTypeJPEG:
contentType = "binary/octet-stream"
default:
contentType = string(outputType)
}

_, err = s3manager.NewUploader(sess).Upload(&s3manager.UploadInput{
Body: file,
Bucket: u.bucket,
ContentType: &contentType,
ContentType: aws.String(string(outputType)),
Key: aws.String(storageFilepath),
Metadata: u.metadata,
Tagging: u.tagging,
Expand Down

0 comments on commit 53fbb7c

Please sign in to comment.