We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Continuous I.
11 years agoNew member | Level 1
CSharp SDK await dbx.Files.UploadAsync(...) object gets disposed before upload
Hi, although I've mastered uploading text content to Dropbox, when trying to upload byte content (typical file, 18 MB), I get the error:
"ERROR: The object was used after being disposed"
The code...
Qiming Y.
Dropbox Staff
11 years agoThanks for your stack trace. I think you are supposed to get a TaskCancelationException given default time out of 100 sec for HttpClient. However if you are using mono, you may get a ObjectDisposedException due to the bug in
http://forums.xamarin.com/discussion/44502/objectdisposedexception-when-canceling-postasync
In general, to deal with large file upload, we would suggest to use UploadSession endpoint so that you can split the file and upload them via multiple requests. 4 mb would be a good chunk size.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!