Public | Automated Build

Last pushed: 9 months ago
Short Description
Easy to use and simple transfersh docker image based on official sources.
Full Description

transfer.sh

Easy and fast file sharing from the command-line.

Usage

Run the following command to start a simple transfer.sh container.

docker run --rm -p 80:8080 maximiliend/transfer.sh --provider local --basedir /tmp

Run the following command to start a simple transfer.sh container with data persistance.

docker run --rm -p 80:8080 -v /transfersh_uploads:/data maximiliend/transfer.sh --provider local --basedir /tmp

You should have a reverse proxy with https endpoint in front of your docker.sh, because it's better ;) and transfer.sh provide https links.

Then to interact with your transfer sh use :

Upload:
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt

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

Download & decrypt:
$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt

Upload to virustotal:
$ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal

Add alias to .bashrc or .zshrc:
===
transfer() {
    # write to output to tmpfile because of progress bar
    tmpfile=$( mktemp -t transferXXX )
    curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile;
    cat $tmpfile;
    rm -f $tmpfile;
}

alias transfer=transfer
===
$ transfer test.txt
Docker Pull Command
Owner
maximiliend
Source Repository