I am uploading file of 20.3 MB using C++ with Qt development environment. I am using session upload. I am uploading with chunk size of 4*1024*1024.
In first upload/start("https://content.dropboxapi.com/2/files/upload_session/start") i am getting sessionId.
As in this above request i am passing 4MB bytearray from file so in next session upload i am passing "Dropbox-API-Arg: ("{\"cursor\": {\"session_id\": \""+m_strUploadId+"\","\"offset\": 4194304},\"close\": false}")
But, I am getting HTTP response atrribute as :409
Error:
"{\n \"error\": {\n \".tag\": \"closed\"\n },\n \"error_summary\": \"closed/..\"\n}\n"
Still more bytes need to send before that why session is getting closed?
I have entered the same as comment in discussion