Skip to content

Instantly share code, notes, and snippets.

@brettcvz
Created March 21, 2013 15:59
Show Gist options
  • Save brettcvz/5214183 to your computer and use it in GitHub Desktop.
Save brettcvz/5214183 to your computer and use it in GitHub Desktop.
Starter script for using Filepicker.io
<!-- 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