Created
September 2, 2014 10:40
-
-
Save alecguintu/7aa91556c01120f4841b to your computer and use it in GitHub Desktop.
Filepicker pick -> store -> remove
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
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