You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
MartaMarco1972
8 years agoExplorer | Level 3
using c# for upload text file
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 = "/Use...
- 8 years agoThere's an example here that defines a task that takes a parameter:
https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L239
And then calls it here:
https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L94
MartaMarco1972
Explorer | Level 3
I don't receive any message, but the file is not uploaded..
Greg-DB
8 years agoDropbox Staff
If there isn't an exception being raise with some error, the method should be returning. You're saving the output to `upload`. Can you share the output from `Console.WriteLine(upload);` in that case?
- MartaMarco19728 years agoExplorer | Level 3The only text displayed is
Dropbox.Api.FileMetaData- Greg-DB8 years agoDropbox Staff
That's the FileMetadata returned by UploadAsync indicating that the call succeeded. You can access properties of that FileMetadata to see specific information about the uploaded file, e.g., PathDisplay.
Where are you looking such that it seems the file wasn't uploaded? If your app uses the "app folder" permission, make sure you're looking inside the app folder for the app, by default at "/Apps/<app folder name>". That "/Apps" will be localized depending on the locale set for the account though, e.g., "/Applicazioni" for Italian, etc.
- marcomarta19728 years agoExplorer | Level 3Ok i Will check the path
If i want to upload on a specific dropbox folder how can I do?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 3 years agoIf 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!