Post multipart/form-data with curl $ curl -F Filedata=@Desktop/stuff/test.png "http://server.com/script"