+
+
+
copy link
+
download
+
+
Press Ctrl / CMD + C to copy link to your clipboard.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/transfersh-server/static/index.html b/transfersh-server/static/index.html
index b121767..932c10a 100644
--- a/transfersh-server/static/index.html
+++ b/transfersh-server/static/index.html
@@ -173,7 +173,8 @@
# Add this to .bashrc or its equivalent
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; }
+
tmpfile=$( mktemp -t transferXXX ); basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; cat $tmpfile; rm -f $tmpfile;
+
}
alias transfer=transfer
diff --git a/transfersh-web/download.audio.html b/transfersh-web/download.audio.html
new file mode 100644
index 0000000..2c8bda7
--- /dev/null
+++ b/transfersh-web/download.audio.html
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+include "includes/head.html"
+
+
+
+
+ include "includes/navigation.html"
+
+
+
+
+
{{.Filename}}
+
type: {{.ContentType}}
+
size: {{.ContentLength | format "#,###."}} bytes
+
+
+
+
+
+
copy link
+
download
+
+
Press Ctrl / CMD + C to copy link to your clipboard.
+
+
+
+
+
+
+ include "includes/footer.html"
+ include "includes/js.html"
+
+
+
+
diff --git a/transfersh-web/download.md.html b/transfersh-web/download.markdown.html
similarity index 100%
rename from transfersh-web/download.md.html
rename to transfersh-web/download.markdown.html
diff --git a/transfersh-web/download.video.html b/transfersh-web/download.video.html
new file mode 100644
index 0000000..209a7d4
--- /dev/null
+++ b/transfersh-web/download.video.html
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+include "includes/head.html"
+
+
+
+
+ include "includes/navigation.html"
+
+
+
+
+
{{.Filename}}
+
type: {{.ContentType}}
+
size: {{.ContentLength | format "#,###."}} bytes
+
+
+
+
+
+
copy link
+
download
+
+
Press Ctrl / CMD + C to copy link to your clipboard.
+
+
+
+
+
+
+ include "includes/footer.html"
+ include "includes/js.html"
+
+
+
+