upload should fail if the file already exists

This commit is contained in:
skilion 2015-09-07 13:28:15 +02:00
parent ac4584f795
commit 20dbc9795c

View file

@ -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;