mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-15 20:26:53 +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);
|
||||
JSONValue response;
|
||||
if (getSize(path) <= thresholdFileSize) {
|
||||
response = onedrive.simpleUpload(path, path);
|
||||
response = onedrive.simpleUpload(path, path, eTag);
|
||||
} else {
|
||||
response = session.upload(path, path);
|
||||
response = session.upload(path, path, eTag);
|
||||
}
|
||||
saveItem(response);
|
||||
id = response["id"].str;
|
||||
|
|
Loading…
Reference in a new issue