cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error closed when uploading file using /upload_session/append_v2

Error closed when uploading file using /upload_session/append_v2

ashlesha t.
New member | Level 1

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 3

Re: Error closed when uploading file using /upload_session/append_v2

Greg-DB
Dropboxer

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.)

Re: Error closed when uploading file using /upload_session/append_v2

ashlesha t.
New member | Level 1

Hi Gregory,

I was following document given https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start .

As given in format I was setting "Dropbox-API-Arg", QByteArray("{\"close\":true}"). Reading your comment I again refer it and changed header and it worked.

Thank you your prompt help.

 

 

Re: Error closed when uploading file using /upload_session/append_v2

ashlesha t.
New member | Level 1

So now i am able to upload file using session.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    ashlesha t. New member | Level 1
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?