Updated upload method in Rest.php to use put.

Sugar's documentation says to use put for uploading of files and to set the body with the file.