{"action":"closed","number":2480,"pull_request":{"url":"https://api.github.com/repos/strapi/strapi/pulls/2480","id":238406171,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NDA2MTcx","html_url":"https://github.com/strapi/strapi/pull/2480","diff_url":"https://github.com/strapi/strapi/pull/2480.diff","patch_url":"https://github.com/strapi/strapi/pull/2480.patch","issue_url":"https://api.github.com/repos/strapi/strapi/issues/2480","number":2480,"state":"closed","locked":false,"title":"Add JS example for file upload","user":{"login":"lauriejim","id":5716596,"node_id":"MDQ6VXNlcjU3MTY1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5716596?v=4","gravatar_id":"","url":"https://api.github.com/users/lauriejim","html_url":"https://github.com/lauriejim","followers_url":"https://api.github.com/users/lauriejim/followers","following_url":"https://api.github.com/users/lauriejim/following{/other_user}","gists_url":"https://api.github.com/users/lauriejim/gists{/gist_id}","starred_url":"https://api.github.com/users/lauriejim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauriejim/subscriptions","organizations_url":"https://api.github.com/users/lauriejim/orgs","repos_url":"https://api.github.com/users/lauriejim/repos","events_url":"https://api.github.com/users/lauriejim/events{/privacy}","received_events_url":"https://api.github.com/users/lauriejim/received_events","type":"User","site_admin":false},"body":"<!-- ⚠️ Your PR title will appear in the changelogs please make it short detailed and understandable for all. -->\r\n\r\n<!-- Uncomment the correct contribution type. !-->\r\n\r\nMy PR is a:\r\n- [ ] 💥 Breaking change\r\n- [ ] 🐛 Bug fix #issueNumber\r\n- [x] 💅 Enhancement\r\n- [ ] 🚀 New feature\r\n\r\nMain update on the:\r\n- [ ] Admin\r\n- [x] Documentation\r\n- [ ] Framework\r\n- [ ] Plugin\r\n\r\nI saw many question on Slack and Stackoverflow about how to upload files.\r\nSo we add an vanilla JS example to upload a file and make a relation with an entry.\r\n","created_at":"2018-12-13T14:20:06Z","updated_at":"2018-12-14T11:22:33Z","closed_at":"2018-12-14T11:22:33Z","merged_at":null,"merge_commit_sha":"0ade182b0cf42f50ab6b0462a009b9d52bcfa7b9","assignee":{"login":"soupette","id":13311463,"node_id":"MDQ6VXNlcjEzMzExNDYz","avatar_url":"https://avatars2.githubusercontent.com/u/13311463?v=4","gravatar_id":"","url":"https://api.github.com/users/soupette","html_url":"https://github.com/soupette","followers_url":"https://api.github.com/users/soupette/followers","following_url":"https://api.github.com/users/soupette/following{/other_user}","gists_url":"https://api.github.com/users/soupette/gists{/gist_id}","starred_url":"https://api.github.com/users/soupette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupette/subscriptions","organizations_url":"https://api.github.com/users/soupette/orgs","repos_url":"https://api.github.com/users/soupette/repos","events_url":"https://api.github.com/users/soupette/events{/privacy}","received_events_url":"https://api.github.com/users/soupette/received_events","type":"User","site_admin":false},"assignees":[{"login":"soupette","id":13311463,"node_id":"MDQ6VXNlcjEzMzExNDYz","avatar_url":"https://avatars2.githubusercontent.com/u/13311463?v=4","gravatar_id":"","url":"https://api.github.com/users/soupette","html_url":"https://github.com/soupette","followers_url":"https://api.github.com/users/soupette/followers","following_url":"https://api.github.com/users/soupette/following{/other_user}","gists_url":"https://api.github.com/users/soupette/gists{/gist_id}","starred_url":"https://api.github.com/users/soupette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupette/subscriptions","organizations_url":"https://api.github.com/users/soupette/orgs","repos_url":"https://api.github.com/users/soupette/repos","events_url":"https://api.github.com/users/soupette/events{/privacy}","received_events_url":"https://api.github.com/users/soupette/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"soupette","id":13311463,"node_id":"MDQ6VXNlcjEzMzExNDYz","avatar_url":"https://avatars2.githubusercontent.com/u/13311463?v=4","gravatar_id":"","url":"https://api.github.com/users/soupette","html_url":"https://github.com/soupette","followers_url":"https://api.github.com/users/soupette/followers","following_url":"https://api.github.com/users/soupette/following{/other_user}","gists_url":"https://api.github.com/users/soupette/gists{/gist_id}","starred_url":"https://api.github.com/users/soupette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupette/subscriptions","organizations_url":"https://api.github.com/users/soupette/orgs","repos_url":"https://api.github.com/users/soupette/repos","events_url":"https://api.github.com/users/soupette/events{/privacy}","received_events_url":"https://api.github.com/users/soupette/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":881293267,"node_id":"MDU6TGFiZWw4ODEyOTMyNjc=","url":"https://api.github.com/repos/strapi/strapi/labels/pr:%20%F0%9F%92%85%20Enhancement","name":"pr: 💅 Enhancement","color":"84b6eb","default":false},{"id":905982651,"node_id":"MDU6TGFiZWw5MDU5ODI2NTE=","url":"https://api.github.com/repos/strapi/strapi/labels/source:%20Documentation","name":"source: Documentation","color":"a8c0f4","default":false}],"milestone":{"url":"https://api.github.com/repos/strapi/strapi/milestones/34","html_url":"https://github.com/strapi/strapi/milestone/34","labels_url":"https://api.github.com/repos/strapi/strapi/milestones/34/labels","id":3870527,"node_id":"MDk6TWlsZXN0b25lMzg3MDUyNw==","number":34,"title":"3.0.0-alpha.17","description":"","creator":{"login":"lauriejim","id":5716596,"node_id":"MDQ6VXNlcjU3MTY1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5716596?v=4","gravatar_id":"","url":"https://api.github.com/users/lauriejim","html_url":"https://github.com/lauriejim","followers_url":"https://api.github.com/users/lauriejim/followers","following_url":"https://api.github.com/users/lauriejim/following{/other_user}","gists_url":"https://api.github.com/users/lauriejim/gists{/gist_id}","starred_url":"https://api.github.com/users/lauriejim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauriejim/subscriptions","organizations_url":"https://api.github.com/users/lauriejim/orgs","repos_url":"https://api.github.com/users/lauriejim/repos","events_url":"https://api.github.com/users/lauriejim/events{/privacy}","received_events_url":"https://api.github.com/users/lauriejim/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":11,"state":"open","created_at":"2018-12-04T16:09:57Z","updated_at":"2018-12-14T11:22:33Z","due_on":"2018-12-18T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/strapi/strapi/pulls/2480/commits","review_comments_url":"https://api.github.com/repos/strapi/strapi/pulls/2480/comments","review_comment_url":"https://api.github.com/repos/strapi/strapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strapi/strapi/issues/2480/comments","statuses_url":"https://api.github.com/repos/strapi/strapi/statuses/0f8febfa357d40ad81e4c540f0e122ee70fcc37a","head":{"label":"strapi:upload-doc-example","ref":"upload-doc-example","sha":"0f8febfa357d40ad81e4c540f0e122ee70fcc37a","user":{"login":"strapi","id":19872173,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODcyMTcz","avatar_url":"https://avatars2.githubusercontent.com/u/19872173?v=4","gravatar_id":"","url":"https://api.github.com/users/strapi","html_url":"https://github.com/strapi","followers_url":"https://api.github.com/users/strapi/followers","following_url":"https://api.github.com/users/strapi/following{/other_user}","gists_url":"https://api.github.com/users/strapi/gists{/gist_id}","starred_url":"https://api.github.com/users/strapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strapi/subscriptions","organizations_url":"https://api.github.com/users/strapi/orgs","repos_url":"https://api.github.com/users/strapi/repos","events_url":"https://api.github.com/users/strapi/events{/privacy}","received_events_url":"https://api.github.com/users/strapi/received_events","type":"Organization","site_admin":false},"repo":{"id":43441403,"node_id":"MDEwOlJlcG9zaXRvcnk0MzQ0MTQwMw==","name":"strapi","full_name":"strapi/strapi","private":false,"owner":{"login":"strapi","id":19872173,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODcyMTcz","avatar_url":"https://avatars2.githubusercontent.com/u/19872173?v=4","gravatar_id":"","url":"https://api.github.com/users/strapi","html_url":"https://github.com/strapi","followers_url":"https://api.github.com/users/strapi/followers","following_url":"https://api.github.com/users/strapi/following{/other_user}","gists_url":"https://api.github.com/users/strapi/gists{/gist_id}","starred_url":"https://api.github.com/users/strapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strapi/subscriptions","organizations_url":"https://api.github.com/users/strapi/orgs","repos_url":"https://api.github.com/users/strapi/repos","events_url":"https://api.github.com/users/strapi/events{/privacy}","received_events_url":"https://api.github.com/users/strapi/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/strapi/strapi","description":"🚀 Open source Node.js Headless CMS to easily build customisable APIs","fork":false,"url":"https://api.github.com/repos/strapi/strapi","forks_url":"https://api.github.com/repos/strapi/strapi/forks","keys_url":"https://api.github.com/repos/strapi/strapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strapi/strapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strapi/strapi/teams","hooks_url":"https://api.github.com/repos/strapi/strapi/hooks","issue_events_url":"https://api.github.com/repos/strapi/strapi/issues/events{/number}","events_url":"https://api.github.com/repos/strapi/strapi/events","assignees_url":"https://api.github.com/repos/strapi/strapi/assignees{/user}","branches_url":"https://api.github.com/repos/strapi/strapi/branches{/branch}","tags_url":"https://api.github.com/repos/strapi/strapi/tags","blobs_url":"https://api.github.com/repos/strapi/strapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strapi/strapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strapi/strapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/strapi/strapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strapi/strapi/statuses/{sha}","languages_url":"https://api.github.com/repos/strapi/strapi/languages","stargazers_url":"https://api.github.com/repos/strapi/strapi/stargazers","contributors_url":"https://api.github.com/repos/strapi/strapi/contributors","subscribers_url":"https://api.github.com/repos/strapi/strapi/subscribers","subscription_url":"https://api.github.com/repos/strapi/strapi/subscription","commits_url":"https://api.github.com/repos/strapi/strapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/strapi/strapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/strapi/strapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/strapi/strapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/strapi/strapi/contents/{+path}","compare_url":"https://api.github.com/repos/strapi/strapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strapi/strapi/merges","archive_url":"https://api.github.com/repos/strapi/strapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strapi/strapi/downloads","issues_url":"https://api.github.com/repos/strapi/strapi/issues{/number}","pulls_url":"https://api.github.com/repos/strapi/strapi/pulls{/number}","milestones_url":"https://api.github.com/repos/strapi/strapi/milestones{/number}","notifications_url":"https://api.github.com/repos/strapi/strapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strapi/strapi/labels{/name}","releases_url":"https://api.github.com/repos/strapi/strapi/releases{/id}","deployments_url":"https://api.github.com/repos/strapi/strapi/deployments","created_at":"2015-09-30T15:34:48Z","updated_at":"2018-12-14T11:18:45Z","pushed_at":"2018-12-14T10:36:48Z","git_url":"git://github.com/strapi/strapi.git","ssh_url":"git@github.com:strapi/strapi.git","clone_url":"https://github.com/strapi/strapi.git","svn_url":"https://github.com/strapi/strapi","homepage":"https://strapi.io","size":42719,"stargazers_count":9738,"watchers_count":9738,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1112,"mirror_url":null,"archived":false,"open_issues_count":144,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1112,"open_issues":144,"watchers":9738,"default_branch":"master"}},"base":{"label":"strapi:master","ref":"master","sha":"bcbbb70d10eee4c146ef775923188d85c73912af","user":{"login":"strapi","id":19872173,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODcyMTcz","avatar_url":"https://avatars2.githubusercontent.com/u/19872173?v=4","gravatar_id":"","url":"https://api.github.com/users/strapi","html_url":"https://github.com/strapi","followers_url":"https://api.github.com/users/strapi/followers","following_url":"https://api.github.com/users/strapi/following{/other_user}","gists_url":"https://api.github.com/users/strapi/gists{/gist_id}","starred_url":"https://api.github.com/users/strapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strapi/subscriptions","organizations_url":"https://api.github.com/users/strapi/orgs","repos_url":"https://api.github.com/users/strapi/repos","events_url":"https://api.github.com/users/strapi/events{/privacy}","received_events_url":"https://api.github.com/users/strapi/received_events","type":"Organization","site_admin":false},"repo":{"id":43441403,"node_id":"MDEwOlJlcG9zaXRvcnk0MzQ0MTQwMw==","name":"strapi","full_name":"strapi/strapi","private":false,"owner":{"login":"strapi","id":19872173,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODcyMTcz","avatar_url":"https://avatars2.githubusercontent.com/u/19872173?v=4","gravatar_id":"","url":"https://api.github.com/users/strapi","html_url":"https://github.com/strapi","followers_url":"https://api.github.com/users/strapi/followers","following_url":"https://api.github.com/users/strapi/following{/other_user}","gists_url":"https://api.github.com/users/strapi/gists{/gist_id}","starred_url":"https://api.github.com/users/strapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strapi/subscriptions","organizations_url":"https://api.github.com/users/strapi/orgs","repos_url":"https://api.github.com/users/strapi/repos","events_url":"https://api.github.com/users/strapi/events{/privacy}","received_events_url":"https://api.github.com/users/strapi/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/strapi/strapi","description":"🚀 Open source Node.js Headless CMS to easily build customisable APIs","fork":false,"url":"https://api.github.com/repos/strapi/strapi","forks_url":"https://api.github.com/repos/strapi/strapi/forks","keys_url":"https://api.github.com/repos/strapi/strapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strapi/strapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strapi/strapi/teams","hooks_url":"https://api.github.com/repos/strapi/strapi/hooks","issue_events_url":"https://api.github.com/repos/strapi/strapi/issues/events{/number}","events_url":"https://api.github.com/repos/strapi/strapi/events","assignees_url":"https://api.github.com/repos/strapi/strapi/assignees{/user}","branches_url":"https://api.github.com/repos/strapi/strapi/branches{/branch}","tags_url":"https://api.github.com/repos/strapi/strapi/tags","blobs_url":"https://api.github.com/repos/strapi/strapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strapi/strapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strapi/strapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/strapi/strapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strapi/strapi/statuses/{sha}","languages_url":"https://api.github.com/repos/strapi/strapi/languages","stargazers_url":"https://api.github.com/repos/strapi/strapi/stargazers","contributors_url":"https://api.github.com/repos/strapi/strapi/contributors","subscribers_url":"https://api.github.com/repos/strapi/strapi/subscribers","subscription_url":"https://api.github.com/repos/strapi/strapi/subscription","commits_url":"https://api.github.com/repos/strapi/strapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/strapi/strapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/strapi/strapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/strapi/strapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/strapi/strapi/contents/{+path}","compare_url":"https://api.github.com/repos/strapi/strapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strapi/strapi/merges","archive_url":"https://api.github.com/repos/strapi/strapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strapi/strapi/downloads","issues_url":"https://api.github.com/repos/strapi/strapi/issues{/number}","pulls_url":"https://api.github.com/repos/strapi/strapi/pulls{/number}","milestones_url":"https://api.github.com/repos/strapi/strapi/milestones{/number}","notifications_url":"https://api.github.com/repos/strapi/strapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strapi/strapi/labels{/name}","releases_url":"https://api.github.com/repos/strapi/strapi/releases{/id}","deployments_url":"https://api.github.com/repos/strapi/strapi/deployments","created_at":"2015-09-30T15:34:48Z","updated_at":"2018-12-14T11:18:45Z","pushed_at":"2018-12-14T10:36:48Z","git_url":"git://github.com/strapi/strapi.git","ssh_url":"git@github.com:strapi/strapi.git","clone_url":"https://github.com/strapi/strapi.git","svn_url":"https://github.com/strapi/strapi","homepage":"https://strapi.io","size":42719,"stargazers_count":9738,"watchers_count":9738,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1112,"mirror_url":null,"archived":false,"open_issues_count":144,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1112,"open_issues":144,"watchers":9738,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strapi/strapi/pulls/2480"},"html":{"href":"https://github.com/strapi/strapi/pull/2480"},"issue":{"href":"https://api.github.com/repos/strapi/strapi/issues/2480"},"comments":{"href":"https://api.github.com/repos/strapi/strapi/issues/2480/comments"},"review_comments":{"href":"https://api.github.com/repos/strapi/strapi/pulls/2480/comments"},"review_comment":{"href":"https://api.github.com/repos/strapi/strapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strapi/strapi/pulls/2480/commits"},"statuses":{"href":"https://api.github.com/repos/strapi/strapi/statuses/0f8febfa357d40ad81e4c540f0e122ee70fcc37a"}},"author_association":"MEMBER","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":48,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"lauriejim"}}