Skip to content

Instantly share code, notes, and snippets.

@alecguintu
Created September 2, 2014 10:40
Show Gist options
  • Save alecguintu/7aa91556c01120f4841b to your computer and use it in GitHub Desktop.
Save alecguintu/7aa91556c01120f4841b to your computer and use it in GitHub Desktop.
Filepicker pick -> store -> remove
filepicker.pick picker_options, (pick_fpfile) ->
sanitized_filename = sanitize_filename(pick_fpfile.filename)
filepicker.store pick_fpfile, store_options, (store_fpfile) ->
# Remove files from both fp.io and our root s3 path
filepicker.remove pick_fpfile, {policy: security.policy, signature: security.signature}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment