missing parameters were making uploads fail

This commit is contained in:
skilion 2015-09-30 15:14:39 +02:00
parent fa9029c643
commit 9a50174c08

View file

@ -410,9 +410,9 @@ final class SyncEngine
writeln("Uploading: ", path); writeln("Uploading: ", path);
JSONValue response; JSONValue response;
if (getSize(path) <= thresholdFileSize) { if (getSize(path) <= thresholdFileSize) {
response = onedrive.simpleUpload(path, path); response = onedrive.simpleUpload(path, path, eTag);
} else { } else {
response = session.upload(path, path); response = session.upload(path, path, eTag);
} }
saveItem(response); saveItem(response);
id = response["id"].str; id = response["id"].str;