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...
Nathan L.2
11 years agoNew member | Level 1
Cheers Qiming,
I was wondering if there was a way to pass a value from the upload chunks to the view so the user can see how long is left of the upload.
The user presses a submit button and this calls an actionResult method in the controller which gets the file and uploads to dropbox using above method.
Currently have this in the Upload Chunks method.
decimal complete = chunkSize * idx; decimal fileSize = stream.Length; decimal percentageComplete = (complete / fileSize) * 100;
Wondering if there was any way to get the percentageComplete value to display in the view?
Thanks
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!