Skip to content

armgit / ente

Public Imported from GitHub
0

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

Keep public multipart checksums required

Neeraj Gupta16c9f79f9bed
diff --git a/server/pkg/api/public_collection.go b/server/pkg/api/public_collection.go
index 49836fa3a0..3747eb23f1 100644
--- a/server/pkg/api/public_collection.go
+++ b/server/pkg/api/public_collection.go
@@ -163,6 +163,11 @@ func (h *PublicCollectionHandler) GetMultipartUploadURLV2(c *gin.Context) {
handler.Error(c, stacktrace.Propagate(err, ""))
return
}
+ // TODO: Remove once deferred multipart checksums are enabled for public uploads.
+ if len(req.PartMD5s) == 0 {
+ handler.Error(c, ente.ErrBadRequest)
+ return
+ }
collection, err := h.Controller.GetPublicCollection(c, true)
if err != nil {
handler.Error(c, stacktrace.Propagate(err, ""))