From 0220c29dbfb04f20b69109df43e8f34c9802ca39 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 7 Oct 2021 12:39:49 +0800 Subject: [PATCH] fix cant upload --- disk/Onedrive.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/disk/Onedrive.php b/disk/Onedrive.php index aa61f35..8dd2129 100644 --- a/disk/Onedrive.php +++ b/disk/Onedrive.php @@ -1010,8 +1010,10 @@ class Onedrive { } else { if ($path=='' or $path=='/') { $url .= $method; - } else { + } elseif (substr($path, 0, 6)=="/items") { $url .= '/' . $method; + } else { + $url .= ':/' . $method; } $method='POST'; $headers['Content-Type'] = 'application/json';