Commit dd746295 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

s3: fix broken pre-signed URL signature

parent 9b0f780a
......@@ -50,7 +50,6 @@ test:
RABBITMQ_DEFAULT_PASS: villas
MINIO_ROOT_USER: minio-villas
MINIO_ROOT_PASSWORD: minio-villas
MINIO_DOMAIN: localhost
AWS_ACCESS_KEY_ID: ${MINIO_ROOT_USER}
AWS_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD}
S3_BUCKET: villas-web
......
......@@ -116,10 +116,10 @@ func (f *File) getS3Url() (string, error) {
svc := s3.New(sess)
req, _ := svc.GetObjectRequest(&s3.GetObjectInput{
Bucket: aws.String(bucket),
Key: aws.String(f.Key),
ResponseContentType: aws.String(f.Type),
ResponseContentDisposition: aws.String("attachment; filename=" + f.Name),
Bucket: aws.String(bucket),
Key: aws.String(f.Key),
ResponseContentType: aws.String(f.Type),
// ResponseContentDisposition: aws.String("attachment; filename=" + f.Name),
// ResponseContentEncoding: aws.String(),
// ResponseContentLanguage: aws.String(),
// ResponseCacheControl: aws.String(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment