Fix code to actually do the upload.

The docs for the 'request' library seem to be incorrect :(

This code works: http://stackoverflow.com/a/11846894