diff options
author | aunsane <aunsane@gmail.com> | 2017-03-06 22:56:11 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-03-06 22:56:49 +0300 |
commit | 80777fc98142e95958138d9c3bbd9347ad6b4c68 (patch) | |
tree | f811d7cbba98db2256c136ce475dd66761ac09b0 | |
parent | aac6c1622c64cad51f9226ddeba7abfb5addaed3 (diff) |
Dropbox: fix file upload
-rw-r--r-- | plugins/Dropbox/src/api/upload.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/Dropbox/src/api/upload.h b/plugins/Dropbox/src/api/upload.h index 098d53e2d2..98841e9b98 100644 --- a/plugins/Dropbox/src/api/upload.h +++ b/plugins/Dropbox/src/api/upload.h @@ -43,12 +43,17 @@ public: AddBearerAuthHeader(token);
AddHeader("Content-Type", "application/octet-stream");
- JSONNode params(JSON_NODE);
- params
+
+ JSONNode cursor;
+ cursor.set_name("cursor");
+ cursor
<< JSONNode("session_id", sessionId)
<< JSONNode("offset", (unsigned long)offset);
- AddHeader("Dropbox-API-Arg", params.write().c_str());
+ JSONNode param;
+ param << cursor;
+
+ AddHeader("Dropbox-API-Arg", param.write().c_str());
SetData(data, size);
}
|