Skip to content

Instantly share code, notes, and snippets.

@brettcvz
Created March 21, 2013 15:59
Show Gist options
  • Select an option

  • Save brettcvz/5214183 to your computer and use it in GitHub Desktop.

Select an option

Save brettcvz/5214183 to your computer and use it in GitHub Desktop.

Revisions

  1. brettcvz renamed this gist Mar 21, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. brettcvz created this gist Mar 21, 2013.
    15 changes: 15 additions & 0 deletions fpio_starter.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    <!-- 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>