From 20dbc9795c5ab6827db0de36504fc85bc9784db9 Mon Sep 17 00:00:00 2001 From: skilion Date: Mon, 7 Sep 2015 13:28:15 +0200 Subject: [PATCH] upload should fail if the file already exists --- src/onedrive.d | 1 + 1 file changed, 1 insertion(+) diff --git a/src/onedrive.d b/src/onedrive.d index f04ab8eb..9b97d10f 100644 --- a/src/onedrive.d +++ b/src/onedrive.d @@ -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;