diff --git a/src/assets/assets.go b/src/assets/assets.go index ea1c6395..3b077b5c 100644 --- a/src/assets/assets.go +++ b/src/assets/assets.go @@ -89,10 +89,11 @@ func Create(ctx context.Context, dbConn db.ConnOrTx, in CreateInput) (*models.As upload := func() error { _, err := client.PutObject(ctx, &s3.PutObjectInput{ - Bucket: &config.Config.DigitalOcean.AssetsSpacesBucket, - Key: &key, - Body: bytes.NewReader(in.Content), - ACL: types.ObjectCannedACLPublicRead, + Bucket: &config.Config.DigitalOcean.AssetsSpacesBucket, + Key: &key, + Body: bytes.NewReader(in.Content), + ACL: types.ObjectCannedACLPublicRead, + ContentType: &in.ContentType, }) return err }