mimetype -> file command (temporary)

This commit is contained in:
zelig 2015-06-04 14:28:00 +01:00
parent bd277f41b4
commit 56ae10a0e6

View file

@ -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