diff --git a/bzz/bzzup/bzzup.sh b/bzz/bzzup/bzzup.sh index 1593ff9b45..aaf6b15078 100755 --- a/bzz/bzzup/bzzup.sh +++ b/bzz/bzzup/bzzup.sh @@ -6,7 +6,7 @@ delimiter='{"entries":[{' if [ -f "$1" ]; then hash=`wget -q -O- --post-file="$1" http://localhost:8500/raw` -mime=`mimetype -b "$1"` +mime=`file --mime-type -b "$1"` wget -q -O- --post-data="$delimiter\"hash\":\"$hash\",\"contentType\":\"$mime\"}]}" http://localhost:8500/raw echo