-
-
Save ethanwillis/9ef393d11d681cd53858652d0646a224 to your computer and use it in GitHub Desktop.
This file contains 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
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: '' | |
} | |
}); | |
uppy.on('transloadit:complete', function(assembly) { | |
console.log(assembly); | |
}); | |
uppy.on('error', function(error) { | |
if(error.assembly) { | |
console.log("Assembly ID " + error.assembly.assembly_id} + " failed"); | |
console.log(error.assembly); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment