{"action":"created","comment":{"url":"https://api.github.com/repos/eggjs/egg-multipart/pulls/comments/221409630","pull_request_review_id":160059447,"id":221409630,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTQwOTYzMA==","diff_hunk":"@@ -107,9 +108,135 @@ exports.multipart = {\n \n ## Examples\n \n-[More Examples](https://github.com/eggjs/examples/tree/master/multipart)\n+More examples please follow:\n \n-### Upload File\n+- [Handle multipart request in `stream` mode](https://github.com/eggjs/examples/tree/master/multipart)\n+- [Handle multipart request in `file` mode](https://github.com/eggjs/examples/tree/master/multipart-file-mode)\n+\n+## `file` mode: the easy way\n+\n+If you don't know the [Node.js Stream](https://nodejs.org/dist/latest-v10.x/docs/api/stream.html) work, maybe you should use the `file` mode to get started.","path":"README.md","position":23,"original_position":23,"commit_id":"3c512f982955392c0ea44498edc4350e2b7e3eb4","original_commit_id":"3c512f982955392c0ea44498edc4350e2b7e3eb4","user":{"login":"atian25","id":227713,"node_id":"MDQ6VXNlcjIyNzcxMw==","avatar_url":"https://avatars2.githubusercontent.com/u/227713?v=4","gravatar_id":"","url":"https://api.github.com/users/atian25","html_url":"https://github.com/atian25","followers_url":"https://api.github.com/users/atian25/followers","following_url":"https://api.github.com/users/atian25/following{/other_user}","gists_url":"https://api.github.com/users/atian25/gists{/gist_id}","starred_url":"https://api.github.com/users/atian25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atian25/subscriptions","organizations_url":"https://api.github.com/users/atian25/orgs","repos_url":"https://api.github.com/users/atian25/repos","events_url":"https://api.github.com/users/atian25/events{/privacy}","received_events_url":"https://api.github.com/users/atian25/received_events","type":"User","site_admin":false},"body":"This is the quickstart for Node newcomer who don't familiar with [Node.js Stream](https://nodejs.org/dist/latest-v10.x/docs/api/stream.html) .\r\n\r\nYou should not use this feature at big project, using Stream could avoid memory issues.\r\n\r\ncc @Maledong help for the english","created_at":"2018-09-29T01:05:40Z","updated_at":"2018-09-29T01:28:42Z","html_url":"https://github.com/eggjs/egg-multipart/pull/19#discussion_r221409630","pull_request_url":"https://api.github.com/repos/eggjs/egg-multipart/pulls/19","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/eggjs/egg-multipart/pulls/comments/221409630"},"html":{"href":"https://github.com/eggjs/egg-multipart/pull/19#discussion_r221409630"},"pull_request":{"href":"https://api.github.com/repos/eggjs/egg-multipart/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/eggjs/egg-multipart/pulls/19","id":218876034,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4ODc2MDM0","html_url":"https://github.com/eggjs/egg-multipart/pull/19","diff_url":"https://github.com/eggjs/egg-multipart/pull/19.diff","patch_url":"https://github.com/eggjs/egg-multipart/pull/19.patch","issue_url":"https://api.github.com/repos/eggjs/egg-multipart/issues/19","number":19,"state":"open","locked":false,"title":"feat: Provide `file` mode to handle multipart request","user":{"login":"fengmk2","id":156269,"node_id":"MDQ6VXNlcjE1NjI2OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/156269?v=4","gravatar_id":"","url":"https://api.github.com/users/fengmk2","html_url":"https://github.com/fengmk2","followers_url":"https://api.github.com/users/fengmk2/followers","following_url":"https://api.github.com/users/fengmk2/following{/other_user}","gists_url":"https://api.github.com/users/fengmk2/gists{/gist_id}","starred_url":"https://api.github.com/users/fengmk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengmk2/subscriptions","organizations_url":"https://api.github.com/users/fengmk2/orgs","repos_url":"https://api.github.com/users/fengmk2/repos","events_url":"https://api.github.com/users/fengmk2/events{/privacy}","received_events_url":"https://api.github.com/users/fengmk2/received_events","type":"User","site_admin":false},"body":"see RFC to get detail: https://github.com/eggjs/egg/issues/3052\r\n\r\ncloses https://github.com/eggjs/egg/issues/3052","created_at":"2018-09-28T07:22:27Z","updated_at":"2018-09-29T01:28:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63a13a9d0f44006caff031b1a8f533edbe3863bd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":413202306,"node_id":"MDU6TGFiZWw0MTMyMDIzMDY=","url":"https://api.github.com/repos/eggjs/egg-multipart/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/eggjs/egg-multipart/pulls/19/commits","review_comments_url":"https://api.github.com/repos/eggjs/egg-multipart/pulls/19/comments","review_comment_url":"https://api.github.com/repos/eggjs/egg-multipart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eggjs/egg-multipart/issues/19/comments","statuses_url":"https://api.github.com/repos/eggjs/egg-multipart/statuses/3c512f982955392c0ea44498edc4350e2b7e3eb4","head":{"label":"eggjs:easy-mode","ref":"easy-mode","sha":"3c512f982955392c0ea44498edc4350e2b7e3eb4","user":{"login":"eggjs","id":15833670,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzNjcw","avatar_url":"https://avatars1.githubusercontent.com/u/15833670?v=4","gravatar_id":"","url":"https://api.github.com/users/eggjs","html_url":"https://github.com/eggjs","followers_url":"https://api.github.com/users/eggjs/followers","following_url":"https://api.github.com/users/eggjs/following{/other_user}","gists_url":"https://api.github.com/users/eggjs/gists{/gist_id}","starred_url":"https://api.github.com/users/eggjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eggjs/subscriptions","organizations_url":"https://api.github.com/users/eggjs/orgs","repos_url":"https://api.github.com/users/eggjs/repos","events_url":"https://api.github.com/users/eggjs/events{/privacy}","received_events_url":"https://api.github.com/users/eggjs/received_events","type":"Organization","site_admin":false},"repo":{"id":64051237,"node_id":"MDEwOlJlcG9zaXRvcnk2NDA1MTIzNw==","name":"egg-multipart","full_name":"eggjs/egg-multipart","private":false,"owner":{"login":"eggjs","id":15833670,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzNjcw","avatar_url":"https://avatars1.githubusercontent.com/u/15833670?v=4","gravatar_id":"","url":"https://api.github.com/users/eggjs","html_url":"https://github.com/eggjs","followers_url":"https://api.github.com/users/eggjs/followers","following_url":"https://api.github.com/users/eggjs/following{/other_user}","gists_url":"https://api.github.com/users/eggjs/gists{/gist_id}","starred_url":"https://api.github.com/users/eggjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eggjs/subscriptions","organizations_url":"https://api.github.com/users/eggjs/orgs","repos_url":"https://api.github.com/users/eggjs/repos","events_url":"https://api.github.com/users/eggjs/events{/privacy}","received_events_url":"https://api.github.com/users/eggjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/eggjs/egg-multipart","description":"multipart plugin for egg","fork":false,"url":"https://api.github.com/repos/eggjs/egg-multipart","forks_url":"https://api.github.com/repos/eggjs/egg-multipart/forks","keys_url":"https://api.github.com/repos/eggjs/egg-multipart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eggjs/egg-multipart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eggjs/egg-multipart/teams","hooks_url":"https://api.github.com/repos/eggjs/egg-multipart/hooks","issue_events_url":"https://api.github.com/repos/eggjs/egg-multipart/issues/events{/number}","events_url":"https://api.github.com/repos/eggjs/egg-multipart/events","assignees_url":"https://api.github.com/repos/eggjs/egg-multipart/assignees{/user}","branches_url":"https://api.github.com/repos/eggjs/egg-multipart/branches{/branch}","tags_url":"https://api.github.com/repos/eggjs/egg-multipart/tags","blobs_url":"https://api.github.com/repos/eggjs/egg-multipart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eggjs/egg-multipart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eggjs/egg-multipart/git/refs{/sha}","trees_url":"https://api.github.com/repos/eggjs/egg-multipart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eggjs/egg-multipart/statuses/{sha}","languages_url":"https://api.github.com/repos/eggjs/egg-multipart/languages","stargazers_url":"https://api.github.com/repos/eggjs/egg-multipart/stargazers","contributors_url":"https://api.github.com/repos/eggjs/egg-multipart/contributors","subscribers_url":"https://api.github.com/repos/eggjs/egg-multipart/subscribers","subscription_url":"https://api.github.com/repos/eggjs/egg-multipart/subscription","commits_url":"https://api.github.com/repos/eggjs/egg-multipart/commits{/sha}","git_commits_url":"https://api.github.com/repos/eggjs/egg-multipart/git/commits{/sha}","comments_url":"https://api.github.com/repos/eggjs/egg-multipart/comments{/number}","issue_comment_url":"https://api.github.com/repos/eggjs/egg-multipart/issues/comments{/number}","contents_url":"https://api.github.com/repos/eggjs/egg-multipart/contents/{+path}","compare_url":"https://api.github.com/repos/eggjs/egg-multipart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eggjs/egg-multipart/merges","archive_url":"https://api.github.com/repos/eggjs/egg-multipart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eggjs/egg-multipart/downloads","issues_url":"https://api.github.com/repos/eggjs/egg-multipart/issues{/number}","pulls_url":"https://api.github.com/repos/eggjs/egg-multipart/pulls{/number}","milestones_url":"https://api.github.com/repos/eggjs/egg-multipart/milestones{/number}","notifications_url":"https://api.github.com/repos/eggjs/egg-multipart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eggjs/egg-multipart/labels{/name}","releases_url":"https://api.github.com/repos/eggjs/egg-multipart/releases{/id}","deployments_url":"https://api.github.com/repos/eggjs/egg-multipart/deployments","created_at":"2016-07-24T06:01:40Z","updated_at":"2018-09-25T05:31:57Z","pushed_at":"2018-09-28T17:18:56Z","git_url":"git://github.com/eggjs/egg-multipart.git","ssh_url":"git@github.com:eggjs/egg-multipart.git","clone_url":"https://github.com/eggjs/egg-multipart.git","svn_url":"https://github.com/eggjs/egg-multipart","homepage":null,"size":85,"stargazers_count":49,"watchers_count":49,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":12,"open_issues":2,"watchers":49,"default_branch":"master"}},"base":{"label":"eggjs:master","ref":"master","sha":"0b4e118a8eef3e61262fb981999cc2173dc08cc3","user":{"login":"eggjs","id":15833670,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzNjcw","avatar_url":"https://avatars1.githubusercontent.com/u/15833670?v=4","gravatar_id":"","url":"https://api.github.com/users/eggjs","html_url":"https://github.com/eggjs","followers_url":"https://api.github.com/users/eggjs/followers","following_url":"https://api.github.com/users/eggjs/following{/other_user}","gists_url":"https://api.github.com/users/eggjs/gists{/gist_id}","starred_url":"https://api.github.com/users/eggjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eggjs/subscriptions","organizations_url":"https://api.github.com/users/eggjs/orgs","repos_url":"https://api.github.com/users/eggjs/repos","events_url":"https://api.github.com/users/eggjs/events{/privacy}","received_events_url":"https://api.github.com/users/eggjs/received_events","type":"Organization","site_admin":false},"repo":{"id":64051237,"node_id":"MDEwOlJlcG9zaXRvcnk2NDA1MTIzNw==","name":"egg-multipart","full_name":"eggjs/egg-multipart","private":false,"owner":{"login":"eggjs","id":15833670,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzNjcw","avatar_url":"https://avatars1.githubusercontent.com/u/15833670?v=4","gravatar_id":"","url":"https://api.github.com/users/eggjs","html_url":"https://github.com/eggjs","followers_url":"https://api.github.com/users/eggjs/followers","following_url":"https://api.github.com/users/eggjs/following{/other_user}","gists_url":"https://api.github.com/users/eggjs/gists{/gist_id}","starred_url":"https://api.github.com/users/eggjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eggjs/subscriptions","organizations_url":"https://api.github.com/users/eggjs/orgs","repos_url":"https://api.github.com/users/eggjs/repos","events_url":"https://api.github.com/users/eggjs/events{/privacy}","received_events_url":"https://api.github.com/users/eggjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/eggjs/egg-multipart","description":"multipart plugin for egg","fork":false,"url":"https://api.github.com/repos/eggjs/egg-multipart","forks_url":"https://api.github.com/repos/eggjs/egg-multipart/forks","keys_url":"https://api.github.com/repos/eggjs/egg-multipart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eggjs/egg-multipart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eggjs/egg-multipart/teams","hooks_url":"https://api.github.com/repos/eggjs/egg-multipart/hooks","issue_events_url":"https://api.github.com/repos/eggjs/egg-multipart/issues/events{/number}","events_url":"https://api.github.com/repos/eggjs/egg-multipart/events","assignees_url":"https://api.github.com/repos/eggjs/egg-multipart/assignees{/user}","branches_url":"https://api.github.com/repos/eggjs/egg-multipart/branches{/branch}","tags_url":"https://api.github.com/repos/eggjs/egg-multipart/tags","blobs_url":"https://api.github.com/repos/eggjs/egg-multipart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eggjs/egg-multipart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eggjs/egg-multipart/git/refs{/sha}","trees_url":"https://api.github.com/repos/eggjs/egg-multipart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eggjs/egg-multipart/statuses/{sha}","languages_url":"https://api.github.com/repos/eggjs/egg-multipart/languages","stargazers_url":"https://api.github.com/repos/eggjs/egg-multipart/stargazers","contributors_url":"https://api.github.com/repos/eggjs/egg-multipart/contributors","subscribers_url":"https://api.github.com/repos/eggjs/egg-multipart/subscribers","subscription_url":"https://api.github.com/repos/eggjs/egg-multipart/subscription","commits_url":"https://api.github.com/repos/eggjs/egg-multipart/commits{/sha}","git_commits_url":"https://api.github.com/repos/eggjs/egg-multipart/git/commits{/sha}","comments_url":"https://api.github.com/repos/eggjs/egg-multipart/comments{/number}","issue_comment_url":"https://api.github.com/repos/eggjs/egg-multipart/issues/comments{/number}","contents_url":"https://api.github.com/repos/eggjs/egg-multipart/contents/{+path}","compare_url":"https://api.github.com/repos/eggjs/egg-multipart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eggjs/egg-multipart/merges","archive_url":"https://api.github.com/repos/eggjs/egg-multipart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eggjs/egg-multipart/downloads","issues_url":"https://api.github.com/repos/eggjs/egg-multipart/issues{/number}","pulls_url":"https://api.github.com/repos/eggjs/egg-multipart/pulls{/number}","milestones_url":"https://api.github.com/repos/eggjs/egg-multipart/milestones{/number}","notifications_url":"https://api.github.com/repos/eggjs/egg-multipart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eggjs/egg-multipart/labels{/name}","releases_url":"https://api.github.com/repos/eggjs/egg-multipart/releases{/id}","deployments_url":"https://api.github.com/repos/eggjs/egg-multipart/deployments","created_at":"2016-07-24T06:01:40Z","updated_at":"2018-09-25T05:31:57Z","pushed_at":"2018-09-28T17:18:56Z","git_url":"git://github.com/eggjs/egg-multipart.git","ssh_url":"git@github.com:eggjs/egg-multipart.git","clone_url":"https://github.com/eggjs/egg-multipart.git","svn_url":"https://github.com/eggjs/egg-multipart","homepage":null,"size":85,"stargazers_count":49,"watchers_count":49,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":12,"open_issues":2,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eggjs/egg-multipart/pulls/19"},"html":{"href":"https://github.com/eggjs/egg-multipart/pull/19"},"issue":{"href":"https://api.github.com/repos/eggjs/egg-multipart/issues/19"},"comments":{"href":"https://api.github.com/repos/eggjs/egg-multipart/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/eggjs/egg-multipart/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/eggjs/egg-multipart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eggjs/egg-multipart/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/eggjs/egg-multipart/statuses/3c512f982955392c0ea44498edc4350e2b7e3eb4"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"atian25"}}