{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/multer/issues/170","repository_url":"https://api.github.com/repos/expressjs/multer","labels_url":"https://api.github.com/repos/expressjs/multer/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/multer/issues/170/comments","events_url":"https://api.github.com/repos/expressjs/multer/issues/170/events","html_url":"https://github.com/expressjs/multer/issues/170","id":96306100,"number":170,"title":"Files are uploading as 'file' without its extension ","user":{"login":"GopalakrishnanK","id":10287362,"avatar_url":"https://avatars.githubusercontent.com/u/10287362?v=3","gravatar_id":"","url":"https://api.github.com/users/GopalakrishnanK","html_url":"https://github.com/GopalakrishnanK","followers_url":"https://api.github.com/users/GopalakrishnanK/followers","following_url":"https://api.github.com/users/GopalakrishnanK/following{/other_user}","gists_url":"https://api.github.com/users/GopalakrishnanK/gists{/gist_id}","starred_url":"https://api.github.com/users/GopalakrishnanK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GopalakrishnanK/subscriptions","organizations_url":"https://api.github.com/users/GopalakrishnanK/orgs","repos_url":"https://api.github.com/users/GopalakrishnanK/repos","events_url":"https://api.github.com/users/GopalakrishnanK/events{/privacy}","received_events_url":"https://api.github.com/users/GopalakrishnanK/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-07-21T12:39:42Z","updated_at":"2016-04-10T16:48:52Z","closed_at":"2015-07-21T17:00:44Z","body":"Hi,\r\n\r\ni am using multer to upload my images. Uploading works fine but the problem is all my files are uploading with 'file' filetype ie, without its extension. can anyone tell me why.....? \r\n\r\nMy Code:\r\n\r\n```javascript\r\nvar uploadProfileImgs = multer({dest : './files/uploads/profile/'}).single('avatar');\r\n\r\napp.post('/profile', function (req, res) {\r\n  uploadProfileImgs(req, res, function (err) {\r\n    if (err) {\r\n      console.log(err.message);\r\n      // An error occurred when uploading\r\n      return\r\n    }\r\n    console.log('Everything went fine');\r\n    // Everything went fine\r\n  })\r\n})\r\n```\r\n\r\nMy files looks like below: \r\n![w](https://cloud.githubusercontent.com/assets/10287362/8802297/21773812-2fde-11e5-91ed-a0d3b45eaeb7.PNG)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/expressjs/multer/issues/comments/208014139","html_url":"https://github.com/expressjs/multer/issues/170#issuecomment-208014139","issue_url":"https://api.github.com/repos/expressjs/multer/issues/170","id":208014139,"user":{"login":"BrentLeasure","id":7659105,"avatar_url":"https://avatars.githubusercontent.com/u/7659105?v=3","gravatar_id":"","url":"https://api.github.com/users/BrentLeasure","html_url":"https://github.com/BrentLeasure","followers_url":"https://api.github.com/users/BrentLeasure/followers","following_url":"https://api.github.com/users/BrentLeasure/following{/other_user}","gists_url":"https://api.github.com/users/BrentLeasure/gists{/gist_id}","starred_url":"https://api.github.com/users/BrentLeasure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrentLeasure/subscriptions","organizations_url":"https://api.github.com/users/BrentLeasure/orgs","repos_url":"https://api.github.com/users/BrentLeasure/repos","events_url":"https://api.github.com/users/BrentLeasure/events{/privacy}","received_events_url":"https://api.github.com/users/BrentLeasure/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T16:48:52Z","updated_at":"2016-04-10T16:48:52Z","body":"@LinusU I'm not 100% following your code, but let me give more information about what is returning to the front end. \r\n\r\nI made a minor change to my original code (under the \"angular\" section, `$scope.image.returndata.data.src` is now just `$scope.image.returndata.data`) \r\nWhen I console.log `$scope.image`, it prints out the following in the console: \r\n\r\n\r\n<img width=\"1266\" alt=\"screenshot\" src=\"https://cloud.githubusercontent.com/assets/7659105/14411572/79fc65ca-ff09-11e5-8518-0ae41984da2d.png\">\r\n\r\n\r\n\r\nI don't know what is returning from the backend, and that is what I'm confused about. I'm guessing it's the image, but I don't know how to have it show up as an image, and not a bunch of jargon. Forgive me if this question has an easy answer, I'm just not used to transferring images."}}