fix: ensure uploads have the IfMatch option

This commit is contained in:
Juan Pablo Villafáñez
2024-03-21 15:04:15 +01:00
parent a9b963019c
commit 01d3e84d79

View File

@@ -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