how to upload files to public folder programmatically (c# or vb.net) ?
thanks
Eytan
Hi Eytan, you can use the Dropbox API to programmatically upload to the Public folder just like any other folder.
Using the API v2 .NET SDK, for example, you can use the UploadAsync method to upload into the Public folder, e.g., by supplying a path like "/Public/uploadedfile.ext".
Hi Gregory
Do I need access token to upload to Public Folder?
If yes , how I can get it ?
Thanks Eytan
Yes, you need an access token to upload to an account via the API.
If you just need to upload to your own account, you can get an access token for your app-user pair by using the "Generate" button on your app's page on the App Console.
Otherwise, to get an access token for any arbitrary account, you'll need to use the OAuth app authorization flow. The .NET SDK examples show how to implement that.
i need to upload to "public" folder in the root folder
but the access token is only for the "Apps" Folder
It sounds like you registered your app for the "app folder" permission. You'll need to register a new one for the "full Dropbox" permission to access the Public folder:
https://www.dropbox.com/developers/apps/create
Thanks.
It solved.