Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
0ylanmorisson
8 years agoExplorer | Level 3
Upload sometimes needs pressing enter to proceed.
My uploading code seems working. But the uploading progress often suspends and it only continues after I press enter.
The progress display is like this:
Authorizing...
Authorize OK!
//Sometim...
Greg-DB
Dropbox Staff
8 years agoIf your program is waiting for keyboard input, that sounds more like something to do with its use of Console, and not the Dropbox API. The Dropbox API is just a programmatic interface, so it doesn't require manual user input.
I recommend using the debugger to see exactly where execution is pausing.
Also, I noticed that you're calling RunChunkedUpload, but the code you shared doesn't have a definition for that. It only shows ChunkedUpload. Are you maybe running a different method than you're expecting?
I recommend using the debugger to see exactly where execution is pausing.
Also, I noticed that you're calling RunChunkedUpload, but the code you shared doesn't have a definition for that. It only shows ChunkedUpload. Are you maybe running a different method than you're expecting?
0ylanmorisson
8 years agoExplorer | Level 3
No, I didn't paste RunChunkedUpload() here because I thought it was trivial.
Here is the code:
private async Task RunChunkedUpload(DropboxClient client) { Console.WriteLine("\nInput local file path: "); var srcfile = Console.ReadLine(); Console.WriteLine("\nInput dropbox path:"); var dstfile = Console.ReadLine(); await GetCurrentAccount(client); await ChunkedUpload(client, srcfile, dstfile); }
And no, my program doesn't need waiting for keyboard response. Once given the local file name and remote file name, it's supposed to start uploading and continuously upload chunk by chunk .
So it is really wierd that I have to sit in front of the computer and monitor the uploading process and press enter to make the uploading process continue if it suspends from time to time ( because this problem doesn't happen every time).
- Greg-DB8 years ago
Dropbox Staff
Thanks! Calls to Console.ReadLine like that would cause the requirement of console input like that, but based on your output it doesn't look like these particular instances of Console.ReadLine are the cause. Do you have Console.ReadLine anywhere else in your code?
Also, I do recommend using the debugger to step into your app while it's executing to see exactly where/when this happening.- 0ylanmorisson8 years agoExplorer | Level 3
OK! Thanks!
Another trivial question, should I write encryption code to secure uploading files? Or does Dropbox API provide some encrption functions?
- Greg-DB8 years ago
Dropbox Staff
All Dropbox API calls require TLS, so everything is encrypted in transit.
We also always recommend that users use device encryption, so that any copies of files stored on their local devices would be encrypted too.
You can find more information about the security of Dropbox systems themselves at the following links:
https://www.dropbox.com/help/27
https://www.dropbox.com/help/1968
If you want an additional layer of encryption in your app itself, that's up to you.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,976 PostsLatest Activity: 16 hours ago
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!