Discuss Dropbox Developer & API
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
};
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.
Hi there!
If you need more help you can view your support options (expected response time for a 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!