nostr:npub1lx349k625y27chfnq4qdmgmmw83yvrxq7e0rxx868vjyj3wu36uqtdck4m has an excellent tool called "nostrfiles" that allows users to upload content to be shared on #nostr. It's located at http://nostrfiles.dev/
But suppose you are a person that spends 90% of time in the terminal, and sometimes post content from there? Here is a shell function that you might find useful:
function upstr() {
if [[ $1 == *".mp3"* ]]; then
curl -s -X POST -F file=@"$1" https://nostrfiles.dev/upload_audio | awk -F'"' '/http/{ print $(NF-1) }'
else
curl -s -X POST -F file=@"$1" https://nostrfiles.dev/upload_image | awk -F'"' '/http/{ print $(NF-1) }'
fi
}
USAGE: `upstr
This will spit out a url you can then link to. This function can be modified to automatically pass the link to your clipboard, making it even more convenient when in a terminal environment.