Created
March 21, 2013 15:59
-
-
Save brettcvz/5214183 to your computer and use it in GitHub Desktop.
Starter script for using Filepicker.io
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
<!-- Add this just before the </head> tag --> | |
<script type="text/javascript"> | |
$(function() { | |
//Put your Filepicker.io API key here: | |
filepicker.setKey('A9gfeq0CMTMeP1dR86vcxz'); | |
$('a').click(function(e) { | |
e.preventDefault(); // This keeps the normal link | |
// behavior from happening | |
filepicker.pickAndStore({},{location: 's3'}, | |
function(fpfiles){ | |
console.log(fpfiles); | |
}); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment