fix content type for video

This commit is contained in:
namhq1989 2023-01-12 16:26:22 +07:00
parent 0089757f02
commit f8db798af6
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func (c Client) GetPresignedURL(ctx context.Context, bucket, object, fileType st
// add content type for video
if fileType == ListTypes.Video {
parts := strings.Split(object, ".")[1]
parts := strings.Split(object, ".")
reqParams.Set("response-content-type", fmt.Sprintf("video/%s", parts[len(parts)-1]))
}