Skip to content

Instantly share code, notes, and snippets.

@Karthik-B-06
Last active April 10, 2019 11:52
Show Gist options
  • Save Karthik-B-06/5d9bdccfa5afb82c2ae9d4e669e9719d to your computer and use it in GitHub Desktop.
Save Karthik-B-06/5d9bdccfa5afb82c2ae9d4e669e9719d to your computer and use it in GitHub Desktop.
let options =
{
// Required. Called when a user selects an item in the Chooser.
success: async files => {
console.log(files);
},
// Optional. Called when the user closes the dialog without selecting a file
// and does not include any parameters.
cancel: function() {},
linkType: "preview",
extensions: [
".pdf",
".doc",
],
folderselect: false, // or true
sizeLimit: 102400000 // or any positive number
};
Dropbox.choose(options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment