You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

averma's avatar
averma
New member | Level 2
3 years ago

Files shown as disabled in dropbox chooser

I am trying to use the dropbox chooser to upload files. The dropbox chooser popup shows all options as disabled

 

here are my options

 

 

 

const options = {

  //@ts-ignore
  success: function(files) {
      alert("Here's the file link: " + files[0].link)
  },

  cancel: function() {
    console.log('cancelled')
  },

  linkType: "preview", // or "direct"

  multiselect: false, // or true

  extensions: ['.pdf', '.doc', '.docx'],

  folderselect: false, // or true

  sizeLimit: 1024, // or any positive number
};

 

 

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    You're setting 'sizeLimit: 1024', meaning that the user can only select files smaller than 1024 bytes. Looking at the types of files in the screenshot you shared, they'd presumably be larger than that, so they'd be disabled. You can should remove the 'sizeLimit' option, or set it to a suitable higher value, as needed for your use case.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API

Make connections with other developers

795 PostsLatest Activity: 4 days ago
194 Following

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 or Facebook.

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!