Comments
-
OK! Thanks! Another trivial question, should I write encryption code to secure uploading files? Or does Dropbox API provide some encrption functions?
-
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…
-
Alright. Thank you!
-
I'm getting another related problem here. If the program accendentally exits, then how can I resume upload when it restarts? I tried a solution which is, 1. record the sessionID and cursor.offset to a txt after each chunk upload; 2. every time the program starts, it will check if "record.txt" exists. If txt exists, then it…
-
I'm facing the same issue here. How can I get the correct offset by using UploadSessionOffsetError.CorrectOffset ? Can you pls show me some sample code? How can I pass the correct offset as the right cursor to the following method? await client.Files.UploadSessionAppendV2Async(cursor, body: memStream);
-
Thank you, I will check out the new API to see how it works. Thanks!