fix: ensure uploads have the IfMatch option

This commit is contained in:
Juan Pablo Villafáñez
2024-04-17 15:54:51 +02:00
parent a9b963019c
commit 01d3e84d79
@@ -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