diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index ab06f4a5d..fbfef8aa5 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -1261,7 +1261,7 @@ func (o *Object) createUploadSession(modTime time.Time) (response *api.CreateUpl opts = rest.Opts{ Method: "POST", RootURL: rootURL, - Path: "/" + drive + "/items/" + id + ":/" + rest.URLPathEscape(leaf) + ":/createUploadSession", + Path: "/" + drive + "/items/" + id + ":/" + rest.URLPathEscape(replaceReservedChars(leaf)) + ":/createUploadSession", } } else { opts = rest.Opts{