Added gist for multipart uploading and writing to a file