diff --git a/transfersh-server/static/index.html b/transfersh-server/static/index.html
index 0f49e4d..2cdcc57 100644
--- a/transfersh-server/static/index.html
+++ b/transfersh-server/static/index.html
@@ -80,7 +80,7 @@
# Upload from web
Drag your files here, or click to browse.
-
+
# Uploading is easy using curl
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
-
+
https://transfer.sh/66nb8/hello.txt
# Download the file
-
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
+
$ curl https://transfer.sh/66nb8/hello.txt -o hello.txt
@@ -171,28 +171,7 @@
# Add this to .bashrc or its equivalent
-
transfer() {
-
if [ $# -eq 0 ]; then
-
echo "No arguments specified. Usage:"
-
echo "$ transfer /tmp/test.md"
-
echo "$ cat /tmp/test.md | transfer test.md"
-
return 1
-
fi
-
-
# write to output to tmpfile because of progress bar
-
tmpfile=$( mktemp -t transferXXX );
-
-
if tty -s; then
-
basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g');
-
curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile;
-
else
-
curl --progress-bar --upload-file "-" "https://transfer.sh/$1"
-
fi
-
-
cat $tmpfile; rm -f $tmpfile;
-
}
-
-
alias transfer=transfer
+
transfer() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }; alias transfer=transfer
# Now you can use transfer command
@@ -298,6 +277,30 @@
+ # wget
+
$ wget --method PUT --body-file=/tmp/file.tar https://transfer.sh/file.tar -O - -nv
+
+
+ # grep syslog for pound and transfer
+
$ cat /var/log/syslog|grep pound|curl --upload-file - https://transfer.sh/pound.log
+
+