Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

bzsApp 2.'s avatar
bzsApp 2.
New member | Level 1
9 years ago

Upload to public folder

how to upload files to public folder programmatically (c# or vb.net) ?

thanks

Eytan

6 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    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".

  • bzsApp 2.'s avatar
    bzsApp 2.
    New member | Level 1
    9 years ago

    Hi Gregory

    Do I need access token to upload to Public Folder?

    If yes , how I can get it ?

    Thanks Eytan

     

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    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.

  • bzsApp 2.'s avatar
    bzsApp 2.
    New member | Level 1
    9 years ago

    i need to upload to "public" folder in the root folder

    but the access token is only for the "Apps" Folder

About Dropbox API Support and Feedback

Node avatar for 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!