// upload the dataBytes to txDir/name in the s3 bucket
upload the dataBytes to txDir/name in the s3 bucket
// upload the dataBytes to txDir / name in the s3 bucket
func awsUpload(sess *session.Session, conf AWS, txDir, name string, dataBytes []byte) error {
	uploader := s3manager.NewUploader(sess)
	_, err := uploader.Upload(&s3manager.UploadInput{
		Bucket: aws.String(conf.Bucket),
		Key:    aws.String(filepath.Join(txDir, name)),
		Body:   bytes.NewBuffer(dataBytes),
	})
	return err
}
func awsUpload ( sess * session . Session , conf AWS , txDir , name string , dataBytes [ ] byte ) error { uploader := s3manager . NewUploader ( sess ) _ , err := uploader . Upload ( & s3manager . UploadInput { Bucket : aws . String ( conf . Bucket ) , Key : aws . String ( filepath . Join ( txDir , name ) ) , Body : bytes . NewBuffer ( dataBytes ) , } ) return err }
upload the dataBytes to txDir/name in the s3 bucket
upload the dataBytes to txDir / name in the s3 bucket