Forum Discussion

engagapp's avatar
engagapp
New member | Level 2
7 years ago

Unable to choose file

I have created Dropbox  for pick file for attachment but unable to pick the file in Dropbox pop up from my account 

4 Replies

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

    It looks like you're using the Dropbox Chooser. Can you share the code you're using to configure it?

    Specifically, are you setting the 'extensions' option? If you are, and aren't allowing the particular file extensions for the files in your account, you won't be able to select them.

  • averma's avatar
    averma
    New member | Level 2
    5 years ago

    Hey I am sort of having the same problem

    const options = {
      // Required. Called when a user selects an item in the Chooser.
      //@ts-ignore
      success: function(files) {
          // alert("Here's the file link: " + files[0].link)
          console.log(files);
      },
    
      cancel: function() {
        console.log('hellp')
      },
      linkType: "preview", // or "preview"
      multiselect: true, // or true
      extensions: ['.pdf', '.doc', '.docx', '.txt'],
      folderselect: false, // or true
      sizeLimit: 1024, // or any positive number
    };

     Here  are the options that i have used. please let me know about the next steps

  • ideazhao's avatar
    ideazhao
    New member | Level 2
    2 years ago

    please check your “sizeLimit” config,it is possible too little,so you can't choose any file~

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!