#!/bin/bash if [ $# -ne 1 ];then echo "You must provide a file to upload!" exit 1 fi URL="http://x.x.x.x" curl -v -F "upfile=@$1" $URL