{"action":"opened","issue":{"url":"https://api.github.com/repos/ricardoper/TwitterOAuth/issues/26","repository_url":"https://api.github.com/repos/ricardoper/TwitterOAuth","labels_url":"https://api.github.com/repos/ricardoper/TwitterOAuth/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/ricardoper/TwitterOAuth/issues/26/comments","events_url":"https://api.github.com/repos/ricardoper/TwitterOAuth/issues/26/events","html_url":"https://github.com/ricardoper/TwitterOAuth/issues/26","id":155632129,"number":26,"title":"Enable base64 upload","user":{"login":"tezzutezzu","id":135866,"avatar_url":"https://avatars.githubusercontent.com/u/135866?v=3","gravatar_id":"","url":"https://api.github.com/users/tezzutezzu","html_url":"https://github.com/tezzutezzu","followers_url":"https://api.github.com/users/tezzutezzu/followers","following_url":"https://api.github.com/users/tezzutezzu/following{/other_user}","gists_url":"https://api.github.com/users/tezzutezzu/gists{/gist_id}","starred_url":"https://api.github.com/users/tezzutezzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tezzutezzu/subscriptions","organizations_url":"https://api.github.com/users/tezzutezzu/orgs","repos_url":"https://api.github.com/users/tezzutezzu/repos","events_url":"https://api.github.com/users/tezzutezzu/events{/privacy}","received_events_url":"https://api.github.com/users/tezzutezzu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-19T00:43:41Z","updated_at":"2016-05-19T00:43:41Z","closed_at":null,"body":"I'm not sure if this library is still maintained but I'm currently working on a legacy project where there is the need of uploading images in base64 format as they're generated in javascript using canvas.\r\n\r\nAs a test I've added the following code in SingleUserAuth.php although Twitter doesn't seem to recognize the media. \r\n\r\nDo you have any suggestion on how this could be accomplished?\r\n\r\nThank you!\r\n\r\n`\r\n protected function buildMultipartBase64($mimeBoundary, $filebase64)\r\n      {\r\n        \r\n        $data = '--' . $mimeBoundary . static::EOL;\r\n        $data .= 'Content-Disposition: form-data; name=\"media\"; filename=\"image\"' . static::EOL;\r\n        $data .= 'Content-Type: image/jpeg' . static::EOL . static::EOL;\r\n        $data .=  $filebase64. static::EOL;\r\n        $data .= '--' . $mimeBoundary . '--' . static::EOL . static::EOL;\r\n\r\n  \r\n\r\n        return $data;\r\n    }\r\n`"}}