Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Christian T.16
9 years agoNew member | Level 1
parsing upload session finish error
Can you provide an example of how to parse an upload session finish error. Here's what I have but none of these cases are triggered. I do get Error but no further details. Thanks.
...
Christian T.16
9 years agoNew member | Level 1
I'm getting successful append results...but the uploadSessionFinish keeps throwing an HTTPError. Do I need to do any memory management with how many appends I can do during a session?
client.files.uploadSessionAppend(sessionId: result.sessionId, offset: startPosition, body: tempData).response { reponse, error in
if let result = response {
print("APPEND RESPONSE: \(response)")
} else {
print("APPEND ERROR: \(error)")
}
}
APPEND RESPONSE: Optional({
"session_id" = AAAAAAAAAQvvYtd4WDV66A;
})
APPEND RESPONSE: Optional({
"session_id" = AAAAAAAAAQvvYtd4WDV66A;
})
APPEND RESPONSE: Optional({
"session_id" = AAAAAAAAAQvvYtd4WDV66A;
})
HTTPError[nil]: nil: Optional(")
With this line...
range = NSMakeRange(Int(startPosition), (data.length)-Int(startPosition))
...the final append is simply whatever is left of the file to upload.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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, Facebook or Instagram.
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!