{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/multer/issues/293","labels_url":"https://api.github.com/repos/expressjs/multer/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/multer/issues/293/comments","events_url":"https://api.github.com/repos/expressjs/multer/issues/293/events","html_url":"https://github.com/expressjs/multer/issues/293","id":123517025,"number":293,"title":"onError not working?","user":{"login":"Jakobud","id":87356,"avatar_url":"https://avatars.githubusercontent.com/u/87356?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakobud","html_url":"https://github.com/Jakobud","followers_url":"https://api.github.com/users/Jakobud/followers","following_url":"https://api.github.com/users/Jakobud/following{/other_user}","gists_url":"https://api.github.com/users/Jakobud/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakobud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakobud/subscriptions","organizations_url":"https://api.github.com/users/Jakobud/orgs","repos_url":"https://api.github.com/users/Jakobud/repos","events_url":"https://api.github.com/users/Jakobud/events{/privacy}","received_events_url":"https://api.github.com/users/Jakobud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-22T16:50:40Z","updated_at":"2015-12-22T18:35:32Z","closed_at":"2015-12-22T17:33:17Z","body":"Is the undocumented `onError` option still a thing? I'm doing this:\r\n\r\n```\r\nvar multerOptions = {\r\n\tdest: 'uploads/',\r\n\tfileFilter: fileFilter,\r\n\tlimits: {\r\n\t\tfiles: 1,\r\n\t\tfileSize: 10000\r\n\t},\r\n\tonError: function(err, next){\r\n\t\tconsole.log(\"error\", err);\r\n\t\tnext(err);\r\n\t}\r\n}\r\n\r\nvar upload = multer(multerOptions);\r\nrouter.post('/upload', upload.single('file'), function(req, res){\r\n  // code here\r\n});\r\n```\r\n\r\nWhen I upload a file that is > 10kb I get Express's error view being fired but I don't see my `console.log error` in the terminal. So is `onError` not being used anymore?"},"comment":{"url":"https://api.github.com/repos/expressjs/multer/issues/comments/166698493","html_url":"https://github.com/expressjs/multer/issues/293#issuecomment-166698493","issue_url":"https://api.github.com/repos/expressjs/multer/issues/293","id":166698493,"user":{"login":"Jakobud","id":87356,"avatar_url":"https://avatars.githubusercontent.com/u/87356?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakobud","html_url":"https://github.com/Jakobud","followers_url":"https://api.github.com/users/Jakobud/followers","following_url":"https://api.github.com/users/Jakobud/following{/other_user}","gists_url":"https://api.github.com/users/Jakobud/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakobud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakobud/subscriptions","organizations_url":"https://api.github.com/users/Jakobud/orgs","repos_url":"https://api.github.com/users/Jakobud/repos","events_url":"https://api.github.com/users/Jakobud/events{/privacy}","received_events_url":"https://api.github.com/users/Jakobud/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T18:35:32Z","updated_at":"2015-12-22T18:35:32Z","body":"Ah I didn't know it was removed. Thank you!"}}