Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I'm trying to upload a text file to my account, but something I'ts wrong
static async Task Run() { using (var dbx = new DropboxClient("MYTOKEN")) { var file = "list.txt"; var folder = "/Users/user01/Downloads/"; var lastpath = folder + file; var mem = new MemoryStream(File.ReadAllBytes(@"C:\Users\user01\Downloads\list.txt")); var upload = await dbx.Files.UploadAsync(lastpath, Dropbox.Api.Files.WriteMode.Overwrite.Instance, false, null, false, mem); Console.WriteLine(upload); Console.ReadLine(); } }
All works fine now!
The file was on application directory,
Now I've change the kind of API to access all my files
Thanks!
Thanks!!
Thanks!!!
How can I send a parameter like file name to a task?
Hi there!
If you need more help you can view your support options (expected response time for a 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!