diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index 6a8c2e78e..cade6eef1 100755 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -1063,7 +1063,8 @@ func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object, } // Copy the object - opts := newOptsCall(srcObj.id, "POST", "/copy") + // The query param is a workaround for OneDrive Business for #4590 + opts := newOptsCall(srcObj.id, "POST", "/copy?@microsoft.graph.conflictBehavior=replace") opts.ExtraHeaders = map[string]string{"Prefer": "respond-async"} opts.NoResponse = true