mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-04 06:52:18 +02:00
missing parameters were making uploads fail
This commit is contained in:
parent
fa9029c643
commit
9a50174c08
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue