mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-03 14:32:24 +02:00
upload should fail if the file already exists
This commit is contained in:
parent
ac4584f795
commit
20dbc9795c
|
@ -135,6 +135,7 @@ final class OneDriveApi
|
||||||
{
|
{
|
||||||
checkAccessTokenExpired();
|
checkAccessTokenExpired();
|
||||||
char[] url = itemByPathUrl ~ remotePath ~ ":/content";
|
char[] url = itemByPathUrl ~ remotePath ~ ":/content";
|
||||||
|
if (!eTag) url ~= "?@name.conflictBehavior=fail";
|
||||||
ubyte[] content;
|
ubyte[] content;
|
||||||
http.onReceive = (ubyte[] data) {
|
http.onReceive = (ubyte[] data) {
|
||||||
content ~= data;
|
content ~= data;
|
||||||
|
|
Loading…
Reference in a new issue