#!/bin/bash

[ "$1" == "" ] && exec echo "Usage: $0 <Filename to upload>"

[ -e "$1" ] || exec echo "Error: File $1 does not exist."

echo -n Connecting... 
RESULT="$(curl --progress-bar --form upload=@"$1" http://60.199.246.188/upload/)" 
cat <<< "$RESULT"
