Your workflow is unique 👨💻 - tell us how you use Dropbox here.
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
Greg-DB
Dropbox Community Moderator
8 years agoYou specify where in the Dropbox account you want to upload the file via the 'path' parameter that you give to UploadAsync. (That's the first parameter to UploadAsync in the code that you shared earlier.)
Note that for apps with the 'app folder' permission, the app can only upload within its app folder. The path you supply with be used relative to the app folder. If you want to be able to upload anywhere in the Dropbox account, you need to use the 'full Dropbox' permission instead. You can find more information about the different permissions here.
marcomarta1972
8 years agoExplorer | Level 3
Ok I understand, the update of the app folder is immediate?
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!