fix content type for video

This commit is contained in:
namhq1989 2023-01-12 16:42:55 +07:00
parent f8db798af6
commit a2b1b1263b
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ func (c Client) GetPresignedURL(ctx context.Context, bucket, object, fileType st
// params // params
reqParams := make(url.Values) 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 // add content type for video
if fileType == ListTypes.Video { if fileType == ListTypes.Video {