fix cant upload
parent
cb478ccf66
commit
0220c29dbf
|
@ -1010,8 +1010,10 @@ class Onedrive {
|
||||||
} else {
|
} else {
|
||||||
if ($path=='' or $path=='/') {
|
if ($path=='' or $path=='/') {
|
||||||
$url .= $method;
|
$url .= $method;
|
||||||
} else {
|
} elseif (substr($path, 0, 6)=="/items") {
|
||||||
$url .= '/' . $method;
|
$url .= '/' . $method;
|
||||||
|
} else {
|
||||||
|
$url .= ':/' . $method;
|
||||||
}
|
}
|
||||||
$method='POST';
|
$method='POST';
|
||||||
$headers['Content-Type'] = 'application/json';
|
$headers['Content-Type'] = 'application/json';
|
||||||
|
|
Loading…
Reference in New Issue