{"action":"created","issue":{"url":"https://api.github.com/repos/brianjgeiger/osf.io/issues/106","labels_url":"https://api.github.com/repos/brianjgeiger/osf.io/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/brianjgeiger/osf.io/issues/106/comments","events_url":"https://api.github.com/repos/brianjgeiger/osf.io/issues/106/events","html_url":"https://github.com/brianjgeiger/osf.io/issues/106","id":85623735,"number":106,"title":"Upload file url requires mid string editing to work","user":{"login":"alexschiller","id":1322421,"avatar_url":"https://avatars.githubusercontent.com/u/1322421?v=3","gravatar_id":"","url":"https://api.github.com/users/alexschiller","html_url":"https://github.com/alexschiller","followers_url":"https://api.github.com/users/alexschiller/followers","following_url":"https://api.github.com/users/alexschiller/following{/other_user}","gists_url":"https://api.github.com/users/alexschiller/gists{/gist_id}","starred_url":"https://api.github.com/users/alexschiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexschiller/subscriptions","organizations_url":"https://api.github.com/users/alexschiller/orgs","repos_url":"https://api.github.com/users/alexschiller/repos","events_url":"https://api.github.com/users/alexschiller/events{/privacy}","received_events_url":"https://api.github.com/users/alexschiller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brianjgeiger/osf.io/labels/api-v2-drf","name":"api-v2-drf","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T20:15:05Z","updated_at":"2015-06-10T20:11:37Z","closed_at":"2015-06-10T20:11:37Z","body":"1. File upload via url currently requires adding file name to the middle of the url string (see image)\r\n2. File self link lists access is via POST it is supposed to be PUT (see here: https://staging2.osf.io/api/v2/nodes/4s8q3/files/\r\n\r\n![screen shot 2015-06-05 at 4 09 53 pm](https://cloud.githubusercontent.com/assets/1322421/8014318/ba44350a-0b9d-11e5-962f-349fb12a81f2.png)\r\n\r\nExample code for upload currently (note the bolded matched text for emphasis)\r\nf = open('/Users/alexanderschiller/Desktop/<b>stupid.txt</b>', 'rb')\r\nr = requests.put(\"https://files-api-staging2.osf.io/file?path=%2F<b>stupid.txt</b>&nid=4s8q3&provider=osfstorage&cookie=5571f2f6404f77020c09dcbf.ve8ATKGiyIYI9dc3kaLA89cV8wM\", f.read())\r\n\r\n---\r\nCould be fixed by having file added at the end or writing a wrapper to make it more accessible.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/brianjgeiger/osf.io/issues/comments/110897046","html_url":"https://github.com/brianjgeiger/osf.io/issues/106#issuecomment-110897046","issue_url":"https://api.github.com/repos/brianjgeiger/osf.io/issues/106","id":110897046,"user":{"login":"brianjgeiger","id":6599111,"avatar_url":"https://avatars.githubusercontent.com/u/6599111?v=3","gravatar_id":"","url":"https://api.github.com/users/brianjgeiger","html_url":"https://github.com/brianjgeiger","followers_url":"https://api.github.com/users/brianjgeiger/followers","following_url":"https://api.github.com/users/brianjgeiger/following{/other_user}","gists_url":"https://api.github.com/users/brianjgeiger/gists{/gist_id}","starred_url":"https://api.github.com/users/brianjgeiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianjgeiger/subscriptions","organizations_url":"https://api.github.com/users/brianjgeiger/orgs","repos_url":"https://api.github.com/users/brianjgeiger/repos","events_url":"https://api.github.com/users/brianjgeiger/events{/privacy}","received_events_url":"https://api.github.com/users/brianjgeiger/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T20:11:37Z","updated_at":"2015-06-10T20:11:37Z","body":"Moved to main repo."}}