paste with curl

Paste a file with curl -F file=@filename nopaste.com/a
or from stdin with curl -F file=@- nopaste.com/a
If everything is fine the URL for the paste is shown.