One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
averma
4 years agoNew member | Level 2
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
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.
About Discuss Dropbox Developer & API
Make connections with other developers806 PostsLatest Activity: 2 days ago
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!