I was trying to do something like this to make it a bit easier to use:
#!/bin/bash
X=$(cd $(dirname "$1") && pwd -P)/$(basename "$1")
curl -F "file=$X" http://curl.io/$2
#!/bin/bash
X=$(cd $(dirname "$1") && pwd -P)/$(basename "$1")
curl -F "file=$X" http://curl.io/$2