We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

AlexBrajkovic's avatar
AlexBrajkovic
Explorer | Level 4
8 years ago

Url of the file instead of a buffer in uploadSessionAppendV2?

Is it possible to send url to the file in call to sessionappendv2 or sessionstart. The reason is that whenever I try to upload files in sequence, I am getting memory leaks in node, becase it keeps th...
  • Greg-DB's avatar
    8 years ago

    No, unfortunately the API v2 JavaScript SDK only supports supplying the file content as string or buffer, but I'll be sure to pass this along as a feature request.

     

    The incorrect_offset error is documented as:

     

    "The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error."

     

    Your sample has the server just a few bytes behind the client though, so it's likely not due to a missed response as in the example in the documentation.

     

    Instead, you may not be supplying the length of data you expect, or there may otherwise be some logic error in your upload session code. I recommend adding some extra logging to your code to see when/where the missing data is occuring.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
326 Following

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!