Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Also thumbs

Manav Rathi188605d8d993
diff --git a/server/pkg/controller/file.go b/server/pkg/controller/file.go
index e8943635ae..efe6297895 100644
--- a/server/pkg/controller/file.go
+++ b/server/pkg/controller/file.go
@@ -810,7 +810,7 @@ func (c *FileController) getHotDcSignedUrl(objectKey string, objType ente.Object
Key: &objectKey,
}
input.ResponseContentDisposition = aws.String("attachment")
- if objType == ente.FILE {
+ if objType == ente.FILE || objType == ente.THUMBNAIL {
input.ResponseContentType = aws.String("application/octet-stream")
}
r, _ := s3Client.GetObjectRequest(input)
@@ -824,7 +824,7 @@ func (c *FileController) getPreSignedURLForDC(objectKey string, dc string, objTy
Key: &objectKey,
}
input.ResponseContentDisposition = aws.String("attachment")
- if objType == ente.FILE {
+ if objType == ente.FILE || objType == ente.THUMBNAIL {
input.ResponseContentType = aws.String("application/octet-stream")
}
r, _ := s3Client.GetObjectRequest(input)