{"action":"created","issue":{"url":"https://api.github.com/repos/NicolasRitouet/dpd-fileupload/issues/55","repository_url":"https://api.github.com/repos/NicolasRitouet/dpd-fileupload","labels_url":"https://api.github.com/repos/NicolasRitouet/dpd-fileupload/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/NicolasRitouet/dpd-fileupload/issues/55/comments","events_url":"https://api.github.com/repos/NicolasRitouet/dpd-fileupload/issues/55/events","html_url":"https://github.com/NicolasRitouet/dpd-fileupload/issues/55","id":132899434,"number":55,"title":"How to put file using subdir with sub-direcory (multi-level-directory) ","user":{"login":"vafrcor","id":2148366,"avatar_url":"https://avatars.githubusercontent.com/u/2148366?v=3","gravatar_id":"","url":"https://api.github.com/users/vafrcor","html_url":"https://github.com/vafrcor","followers_url":"https://api.github.com/users/vafrcor/followers","following_url":"https://api.github.com/users/vafrcor/following{/other_user}","gists_url":"https://api.github.com/users/vafrcor/gists{/gist_id}","starred_url":"https://api.github.com/users/vafrcor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vafrcor/subscriptions","organizations_url":"https://api.github.com/users/vafrcor/orgs","repos_url":"https://api.github.com/users/vafrcor/repos","events_url":"https://api.github.com/users/vafrcor/events{/privacy}","received_events_url":"https://api.github.com/users/vafrcor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T06:20:24Z","updated_at":"2016-02-11T09:12:49Z","closed_at":null,"body":"When we create a big scale web-app, we need directory with good structure.\r\nIn this case, I wanted to put my file into \"/upload/2016/02/12\". \r\nBut the HTTP POST request show an error.\r\nThis is caused by `fs.mkdir()` can't create multi-level directory.\r\n\r\nMy Suggestion, use \"[mkdirp](https://www.npmjs.com/package/mkdirp)\" node-module to solve this.\r\n\r\nThank you.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NicolasRitouet/dpd-fileupload/issues/comments/182775805","html_url":"https://github.com/NicolasRitouet/dpd-fileupload/issues/55#issuecomment-182775805","issue_url":"https://api.github.com/repos/NicolasRitouet/dpd-fileupload/issues/55","id":182775805,"user":{"login":"NicolasRitouet","id":205134,"avatar_url":"https://avatars.githubusercontent.com/u/205134?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolasRitouet","html_url":"https://github.com/NicolasRitouet","followers_url":"https://api.github.com/users/NicolasRitouet/followers","following_url":"https://api.github.com/users/NicolasRitouet/following{/other_user}","gists_url":"https://api.github.com/users/NicolasRitouet/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolasRitouet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolasRitouet/subscriptions","organizations_url":"https://api.github.com/users/NicolasRitouet/orgs","repos_url":"https://api.github.com/users/NicolasRitouet/repos","events_url":"https://api.github.com/users/NicolasRitouet/events{/privacy}","received_events_url":"https://api.github.com/users/NicolasRitouet/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T09:12:49Z","updated_at":"2016-02-11T09:12:49Z","body":"That's indeed a good idea.\r\nunfortunately, I don't have time to work on this yet, but you are more than welcome to send us a pull request."}}