cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Files shown as disabled in dropbox chooser

Files shown as disabled in dropbox chooser

averma
New member | Level 2

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

 

here are my optionsScreenshot from 2021-12-13 21-57-26.png

 

 

 

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
};

 

 

 

1 Reply 1

Greg-DB
Dropbox 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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?