{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/1030","labels_url":"https://api.github.com/repos/meanjs/mean/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/1030/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/1030/events","html_url":"https://github.com/meanjs/mean/issues/1030","id":114026288,"number":1030,"title":"Image Upload ","user":{"login":"Meistercoach83","id":939937,"avatar_url":"https://avatars.githubusercontent.com/u/939937?v=3","gravatar_id":"","url":"https://api.github.com/users/Meistercoach83","html_url":"https://github.com/Meistercoach83","followers_url":"https://api.github.com/users/Meistercoach83/followers","following_url":"https://api.github.com/users/Meistercoach83/following{/other_user}","gists_url":"https://api.github.com/users/Meistercoach83/gists{/gist_id}","starred_url":"https://api.github.com/users/Meistercoach83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meistercoach83/subscriptions","organizations_url":"https://api.github.com/users/Meistercoach83/orgs","repos_url":"https://api.github.com/users/Meistercoach83/repos","events_url":"https://api.github.com/users/Meistercoach83/events{/privacy}","received_events_url":"https://api.github.com/users/Meistercoach83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T11:00:44Z","updated_at":"2015-10-29T11:50:23Z","closed_at":null,"body":"Hi,\r\nI tried to use the new image upload with the config in config/env/local.js:\r\n\r\n    'use strict';\r\n    module.exports = {\r\n      uploads: {\r\n        locationCategoryPicture:{\r\n          dest: './modules/locationCategories/client/img/uploads', //  upload destination path\r\n          limits: {\r\n            fileSize: 1 * 1024 * 1024 // Max file size in bytes (1 MB)\r\n          }\r\n        }\r\n      }\r\n    };\r\n\r\nmy route:\r\n\r\n    app.route('/api/locationCategories/picture/:locationCategoryId').post(locationCategories.changeProfilePicture);\r\n\r\nserver.js:\r\n    \r\n    exports.changeProfilePicture = function (req, res) {\r\n      var locationCategory = req.locationCategory;\r\n      var upload = multer(config.uploads.locationCategoryPicture).single('newLocationCategoryPicture');\r\n      var locationCategoryUploadFileFilter = require(path.resolve('./config/lib/multer')).profileUploadFileFilter;\r\n\r\nwhen I´m trying to upload a new image my server throws an error in the var upload = multer(); Line ...\r\n\r\n> TypeError: undefined is not a function\r\n        at exports.changeProfilePicture (/modules/locationCategories/server/controllers/locationCategories.server.controller.js:38:63)\r\n        at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\r\n        at next (/node_modules/express/lib/router/route.js:131:13)\r\n        at Route.dispatch (/node_modules/express/lib/router/route.js:112:3)\r\n        at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\r\n        at /node_modules/express/lib/router/index.js:277:22\r\n        at param (/node_modules/express/lib/router/index.js:349:14)\r\n        at paramCallback (/node_modules/express/lib/router/index.js:401:21)\r\n        at /modules/locationCategories/server/controllers/locationCategories.server.controller.js:155:5\r\n        at Query.<anonymous> (/node_modules/mongoose/lib/query.js:2119:28)\r\n        at /node_modules/mongoose/node_modules/kareem/index.js:177:19\r\n        at /node_modules/mongoose/node_modules/kareem/index.js:109:16\r\n        at process._tickCallback (node.js:355:11)\r\n\r\nIs there already an open issue and i can´t find it?! Or what am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/meanjs/mean/issues/comments/152155972","html_url":"https://github.com/meanjs/mean/issues/1030#issuecomment-152155972","issue_url":"https://api.github.com/repos/meanjs/mean/issues/1030","id":152155972,"user":{"login":"lirantal","id":316371,"avatar_url":"https://avatars.githubusercontent.com/u/316371?v=3","gravatar_id":"","url":"https://api.github.com/users/lirantal","html_url":"https://github.com/lirantal","followers_url":"https://api.github.com/users/lirantal/followers","following_url":"https://api.github.com/users/lirantal/following{/other_user}","gists_url":"https://api.github.com/users/lirantal/gists{/gist_id}","starred_url":"https://api.github.com/users/lirantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lirantal/subscriptions","organizations_url":"https://api.github.com/users/lirantal/orgs","repos_url":"https://api.github.com/users/lirantal/repos","events_url":"https://api.github.com/users/lirantal/events{/privacy}","received_events_url":"https://api.github.com/users/lirantal/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T11:50:23Z","updated_at":"2015-10-29T11:50:23Z","body":"@mleanos @gustavodemari can you look into it?"}}