#!/bin/sh
if [ $# -eq 0 ]
  then
  echo "* Usage:"
  echo "upload filename [optional_dir]"
  exit 1
fi

curl -F "dir=$2"  -F "file=@$1" http://f.royalbot.com/action/post.upload.php
echo "Uploaded"
