Skip to content

Instantly share code, notes, and snippets.

@bwalton
Created February 26, 2021 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bwalton/23170296793f76ea85349e4e197c9920 to your computer and use it in GitHub Desktop.
Save bwalton/23170296793f76ea85349e4e197c9920 to your computer and use it in GitHub Desktop.
var uppy = window.Robodog.pick({
providers: [],
waitForEncoding: true,
autoProceed: true,
restrictions: {
maxNumberOfFiles: 1,
maxFileSize: (250*1024*1024),
allowedFileTypes: ['.jpg', '.jpeg', '.png']
},
params: {
auth: { key: "" },
template_id: ''
}
}).then(function(result) {
console.log("result", result)
}).catch(function(error) {
console.log("error", error)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment