{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/multer/issues/159","labels_url":"https://api.github.com/repos/expressjs/multer/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/multer/issues/159/comments","events_url":"https://api.github.com/repos/expressjs/multer/issues/159/events","html_url":"https://github.com/expressjs/multer/issues/159","id":95928979,"number":159,"title":"Cant get the middleware work in express 4","user":{"login":"daffa2","id":12405663,"avatar_url":"https://avatars.githubusercontent.com/u/12405663?v=3","gravatar_id":"","url":"https://api.github.com/users/daffa2","html_url":"https://github.com/daffa2","followers_url":"https://api.github.com/users/daffa2/followers","following_url":"https://api.github.com/users/daffa2/following{/other_user}","gists_url":"https://api.github.com/users/daffa2/gists{/gist_id}","starred_url":"https://api.github.com/users/daffa2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daffa2/subscriptions","organizations_url":"https://api.github.com/users/daffa2/orgs","repos_url":"https://api.github.com/users/daffa2/repos","events_url":"https://api.github.com/users/daffa2/events{/privacy}","received_events_url":"https://api.github.com/users/daffa2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-19T16:26:22Z","updated_at":"2015-07-19T22:56:15Z","closed_at":null,"body":"I am just following the readme tutorial and encountered the problem of \r\n\r\n```text\r\nError: Unexpected field \r\n    at makeError (*\\node_modules\\multer\\lib\\make-error.js:12:13)\r\n```\r\n\r\nmy code look like this:\r\n```javascript\r\nvar express = require('express');\r\nvar app = express();\r\n\r\nvar multer = require('multer');\r\nvar upload = multer({ dest: './uploads/'});\r\n\r\napp.post('/image',upload.single('avatar'), function (req, res) {\r\n    var image = req.body;\r\n    res.status(204).end()\r\n});\r\n```\r\n\r\nmy client is angular from the tutorial :https://uncorkedstudios.com/blog/multipartformdata-file-upload-with-angularjs\r\n\r\nI cant find the solution can you help me?\r\n"},"comment":{"url":"https://api.github.com/repos/expressjs/multer/issues/comments/122714062","html_url":"https://github.com/expressjs/multer/issues/159#issuecomment-122714062","issue_url":"https://api.github.com/repos/expressjs/multer/issues/159","id":122714062,"user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars.githubusercontent.com/u/189580?v=3","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T22:56:15Z","updated_at":"2015-07-19T22:56:15Z","body":"What is the field name of the file uploaded?  `<input type=\"file\" name=\"THISVALUE\" />`\r\n\r\nThe code you are using is expecting it to be `avatar`."}}