Skip to content

Instantly share code, notes, and snippets.

@kyrias
Created Jan 30, 2014
Embed
What would you like to do?
Upload a file to pomf.se
#!/usr/bin/env bash
upload=$(curl -sf -F "files[]=@\"$1\"" http://pomf.se/upload.php)
geturl=$(jshon -e files -e 0 -e url -u <<< $upload)
printf "%s/%s\n" "http://a.pomf.se" "$geturl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment