Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

gauravsc's avatar
gauravsc
Explorer | Level 3
7 years ago
Solved

How do i integrate Dropbox chooser with Angular app?

I am using angular v 7 which is currently stable angular version. I would like to use angular chooser in my application. I have used it with JavaScript/AngularJS . There i can import script with my app key. Here in angular 7, i need it to work with typescript. How do i do that? If chooser is not available in this scenario, how can i mimic it's functionality?

6 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    The Dropbox Chooser isn't officially supported in Angular unfortunately, but I'll pass this along as a feature request. 

    If you wanted to replicate the functionality using the Dropbox API, you could do so using the following endpoints (or corresponding methods in an SDK/library), but it would be substantially more work:

  • gauravsc's avatar
    gauravsc
    Explorer | Level 3
    7 years ago

    Thanks Greg-DB for quick reply.

    What i need is link of users file, which is returned by chooser. i will try to find alternative way to do it. 

  • gauravsc's avatar
    gauravsc
    Explorer | Level 3
    7 years ago

    Hi Greg, 

    Thanks for reverting.

    I would like to share more info for my usecase. May be you can suggest the best way to achive what i need. 

    Is there any way i can send private message?So i can share more details.

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

    Yes, if you would like to request API support privately, you can do so here.

  • dbrw's avatar
    dbrw
    New member | Level 2
    4 years ago

    this works... somewhere in your component.ts: (remember the script tag in index.html or wherever)

    const options = {

      success: (files) => {

        // do something

      },

    };

    const dropbox = (window as any).Dropbox;

    const dropboxBtn = dropbox.createChooseButton(options);

    document.getElementById('<your div id>').appendChild(dropboxBtn);

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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!