summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfb4
1 files changed, 2 insertions, 2 deletions
diff --git a/fb b/fb
index 41523fc..30c02f7 100755
--- a/fb
+++ b/fb
@@ -11,7 +11,7 @@
# Optional: xclip
#----------------------------------------------------
-VERSION="0.6.8.1"
+VERSION="0.6.8.2"
DELETE=
EXTENSION=""
@@ -58,7 +58,7 @@ do_upload() {
return 1
fi
fi
- if ! curl -# -n -L -A $USERAGENT $EXTRA -F "file=@$file" "$PASTEBIN/file/do_upload" > $TMPFILE; then
+ if ! cat "$file" | curl -# -n -L -A $USERAGENT $EXTRA -F "file=@-;filename=$basefilename" "$PASTEBIN/file/do_upload" > $TMPFILE; then
EXITCODE=1
return 1
fi