Last active
April 10, 2019 11:52
-
-
Save Karthik-B-06/5d9bdccfa5afb82c2ae9d4e669e9719d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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