Share files easily from cli with

Hello everyone,

Let me present you which permit to upload files and share them from command line.


It has many advantages comparing to others cloud storage providers :

Every settings can be modified if you host the service.

Few tips to use it :

$ curl --upload-file ./hello.txt

Encrypt & upload:
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-"

Download & decrypt:
$ curl|gpg -o- > /tmp/hello.txt

Upload to virustotal:
$ curl -X PUT --upload-file nhgbhhj

Add alias to .bashrc or .zshrc (best method for me) :

transfer() {
    # write to output to tmpfile because of progress bar
    tmpfile=$( mktemp -t transferXXX )
    curl --progress-bar --upload-file $1$(basename $1) >> $tmpfile;
    cat $tmpfile;
    rm -f $tmpfile;

Alias transfer=transfer
$ transfer test.txt

Do you think it could be useful to integrate the alias into the QuickBox .bashrc file ? (as QuickBox commands).
It’s also possible to create a package app if you want to host it on your server to have your own cloud service :slight_smile: