{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1187","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1187/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1187/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1187/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1187","id":121024000,"number":1187,"title":"Problems sending extra fields and renaming file.","user":{"login":"DrankoLQ","id":8750071,"avatar_url":"https://avatars.githubusercontent.com/u/8750071?v=3","gravatar_id":"","url":"https://api.github.com/users/DrankoLQ","html_url":"https://github.com/DrankoLQ","followers_url":"https://api.github.com/users/DrankoLQ/followers","following_url":"https://api.github.com/users/DrankoLQ/following{/other_user}","gists_url":"https://api.github.com/users/DrankoLQ/gists{/gist_id}","starred_url":"https://api.github.com/users/DrankoLQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrankoLQ/subscriptions","organizations_url":"https://api.github.com/users/DrankoLQ/orgs","repos_url":"https://api.github.com/users/DrankoLQ/repos","events_url":"https://api.github.com/users/DrankoLQ/events{/privacy}","received_events_url":"https://api.github.com/users/DrankoLQ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-08T14:56:11Z","updated_at":"2015-12-08T22:49:31Z","closed_at":null,"body":"Hello!\r\n\r\nI'm trying to upload a file but I need two extra things: I want to send an extra field and rename the file.\r\nI've been reading your examples but it doesn't work as expected:\r\n\r\n```javascript\r\nUpload.upload({\r\n                url: '/postnuevadieta',\r\n                data: {file: Upload.rename($scope.fichero, 'dieta.pdf'), 'email': mail}\r\n```\r\nWhen I try to get the \"email\" field in Node.js (req.email) it's undefined, and the rename function doesn't rename the file. Could yo help me?\r\n\r\nAnd by the way, thanks for your work :)"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/163045993","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1187#issuecomment-163045993","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1187","id":163045993,"user":{"login":"DrankoLQ","id":8750071,"avatar_url":"https://avatars.githubusercontent.com/u/8750071?v=3","gravatar_id":"","url":"https://api.github.com/users/DrankoLQ","html_url":"https://github.com/DrankoLQ","followers_url":"https://api.github.com/users/DrankoLQ/followers","following_url":"https://api.github.com/users/DrankoLQ/following{/other_user}","gists_url":"https://api.github.com/users/DrankoLQ/gists{/gist_id}","starred_url":"https://api.github.com/users/DrankoLQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrankoLQ/subscriptions","organizations_url":"https://api.github.com/users/DrankoLQ/orgs","repos_url":"https://api.github.com/users/DrankoLQ/repos","events_url":"https://api.github.com/users/DrankoLQ/events{/privacy}","received_events_url":"https://api.github.com/users/DrankoLQ/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T22:49:31Z","updated_at":"2015-12-08T22:49:31Z","body":"Nervermind, the rename function is working, it's (again) the server side who is not working (I'm using multer lib)\r\n\r\nThanks for your help!"}}