mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-12 16:58:41 -05:00
fix: ensure uploads have the IfMatch option
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user