Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

Forum Discussion

ashlesha t.'s avatar
ashlesha t.
New member | Level 1
9 years ago

Error closed when uploading file using /upload_session/append_v2

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 

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    The closed error from /files/upload_session/append_v2 should indicate that the upload session identified by the session_id is already closed.

    Can you share the request/response for the call to /files/upload_session/start? (Just be sure to redact the access token and file content.)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,038 PostsLatest Activity: 6 years ago
415 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!