From 01d3e84d79433264703830915ea4bddfeacb3b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pablo=20Villaf=C3=A1=C3=B1ez?= Date: Thu, 21 Mar 2024 15:04:15 +0100 Subject: [PATCH] fix: ensure uploads have the IfMatch option --- services/collaboration/pkg/connector/contentconnector.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services/collaboration/pkg/connector/contentconnector.go b/services/collaboration/pkg/connector/contentconnector.go index 042edc3e19..4d23c0f328 100644 --- a/services/collaboration/pkg/connector/contentconnector.go +++ b/services/collaboration/pkg/connector/contentconnector.go @@ -203,10 +203,9 @@ func (c *ContentConnector) PutFile(ctx context.Context, stream io.Reader, stream Opaque: opaque, Ref: &wopiContext.FileReference, LockId: lockID, - // TODO: if-match - //Options: &providerv1beta1.InitiateFileUploadRequest_IfMatch{ - // IfMatch: "", - //}, + Options: &providerv1beta1.InitiateFileUploadRequest_IfMatch{ + IfMatch: statRes.Info.Etag, + }, } // Initiate the upload request