diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-10-24 10:41:15 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-10-24 10:41:15 +0200 |
commit | f7be5d413416d558357ba2d2310f2e08800da9ac (patch) | |
tree | 3971d57fd2921da7a14fffd28be1abb6c7935f75 | |
parent | e83c182908785273310df23d5801bd9e7689cebc (diff) |
fix uploading of dynamic filesv0.6.8.2
curl is unable to determine the size of dynamic files like
/proc/cpuinfo because they are only stored in memory and dynamically
generated when read.
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rwxr-xr-x | fb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |