{"action":"created","issue":{"url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/659","repository_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs","labels_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/659/comments","events_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/659/events","html_url":"https://github.com/OneDrive/onedrive-api-docs/issues/659","id":243488857,"number":659,"title":"Need help with upload","user":{"login":"neunygph","id":15826241,"avatar_url":"https://avatars3.githubusercontent.com/u/15826241?v=4","gravatar_id":"","url":"https://api.github.com/users/neunygph","html_url":"https://github.com/neunygph","followers_url":"https://api.github.com/users/neunygph/followers","following_url":"https://api.github.com/users/neunygph/following{/other_user}","gists_url":"https://api.github.com/users/neunygph/gists{/gist_id}","starred_url":"https://api.github.com/users/neunygph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neunygph/subscriptions","organizations_url":"https://api.github.com/users/neunygph/orgs","repos_url":"https://api.github.com/users/neunygph/repos","events_url":"https://api.github.com/users/neunygph/events{/privacy}","received_events_url":"https://api.github.com/users/neunygph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-17T18:44:20Z","updated_at":"2017-07-17T22:59:53Z","closed_at":null,"body":"Hi There,\r\nI'm trying to upload a file (image or any other type) with the REST api end point and look like the file got corrupted after being uploaded to the server even it was successfully uploaded. \r\nexample upload url:\r\nPUT https://api.onedrive.com/v1.0/drive/items/90C80432FA7813FC!3743:/mytest.jpg:/content \r\nIs there any special header that I should include before sending the request , please help.\r\n\r\nThanks in advance.\r\n\r\nPhuong"},"comment":{"url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/comments/315909380","html_url":"https://github.com/OneDrive/onedrive-api-docs/issues/659#issuecomment-315909380","issue_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/659","id":315909380,"user":{"login":"neunygph","id":15826241,"avatar_url":"https://avatars3.githubusercontent.com/u/15826241?v=4","gravatar_id":"","url":"https://api.github.com/users/neunygph","html_url":"https://github.com/neunygph","followers_url":"https://api.github.com/users/neunygph/followers","following_url":"https://api.github.com/users/neunygph/following{/other_user}","gists_url":"https://api.github.com/users/neunygph/gists{/gist_id}","starred_url":"https://api.github.com/users/neunygph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neunygph/subscriptions","organizations_url":"https://api.github.com/users/neunygph/orgs","repos_url":"https://api.github.com/users/neunygph/repos","events_url":"https://api.github.com/users/neunygph/events{/privacy}","received_events_url":"https://api.github.com/users/neunygph/received_events","type":"User","site_admin":false},"created_at":"2017-07-17T22:59:52Z","updated_at":"2017-07-17T22:59:52Z","body":"Hi, I'm trying to upload images and sending the raw binary data. Does it has to be encoded into base64 or it's just optional ?\n\nWhat about other type such as .docx, .txt, .PDF and such ?\n\nThanks\n\nPhuong Nguyen\n\n________________________________\nFrom: Brad Cleaver <notifications@github.com>\nSent: Monday, July 17, 2017 2:12:48 PM\nTo: OneDrive/onedrive-api-docs\nCc: Phuong Nguyen; Author\nSubject: Re: [OneDrive/onedrive-api-docs] Need help with upload (#659)\n\n\nWhat does the body of the request contain? Are you doing something like base64 encoding it first? OneDrive will persist EXACTLY what you give it (ignoring gzip scenarios) so I'd start by confirming what you're pushing up is what you expect.\n\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub<https://github.com/OneDrive/onedrive-api-docs/issues/659#issuecomment-315886348>, or mute the thread<https://github.com/notifications/unsubscribe-auth/APF9QRaG7fx0y-gMV44P8MvNPjtKR7Pmks5sO85QgaJpZM4OaX_M>.\n"}}
{"actor":{"display_login":"neunygph"}}