From a2b1b1263b6e5cea578eadd8089cc39a355f2de6 Mon Sep 17 00:00:00 2001 From: namhq1989 Date: Thu, 12 Jan 2023 16:42:55 +0700 Subject: [PATCH] fix content type for video --- presigned_url.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presigned_url.go b/presigned_url.go index ea7513d..551f198 100644 --- a/presigned_url.go +++ b/presigned_url.go @@ -16,7 +16,7 @@ func (c Client) GetPresignedURL(ctx context.Context, bucket, object, fileType st // params reqParams := make(url.Values) - reqParams.Set("response-content-disposition", fmt.Sprintf("attachment; filename=\"%s\"", object)) + //reqParams.Set("response-content-disposition", fmt.Sprintf("attachment; filename=\"%s\"", object)) // add content type for video if fileType == ListTypes.Video {