mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-21 23:26:37 +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();
|
||||
char[] url = itemByPathUrl ~ remotePath ~ ":/content";
|
||||
if (!eTag) url ~= "?@name.conflictBehavior=fail";
|
||||
ubyte[] content;
|
||||
http.onReceive = (ubyte[] data) {
|
||||
content ~= data;
|
||||
|
|
Loading…
Reference in a new issue