{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/987","labels_url":"https://api.github.com/repos/aspnet/Home/issues/987/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/987/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/987/events","html_url":"https://github.com/aspnet/Home/issues/987","id":111356594,"number":987,"title":"ContentDispositionHeaderValue doesnt parse FileName and Name correctly","user":{"login":"Gillardo","id":7406381,"avatar_url":"https://avatars.githubusercontent.com/u/7406381?v=3","gravatar_id":"","url":"https://api.github.com/users/Gillardo","html_url":"https://github.com/Gillardo","followers_url":"https://api.github.com/users/Gillardo/followers","following_url":"https://api.github.com/users/Gillardo/following{/other_user}","gists_url":"https://api.github.com/users/Gillardo/gists{/gist_id}","starred_url":"https://api.github.com/users/Gillardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gillardo/subscriptions","organizations_url":"https://api.github.com/users/Gillardo/orgs","repos_url":"https://api.github.com/users/Gillardo/repos","events_url":"https://api.github.com/users/Gillardo/events{/privacy}","received_events_url":"https://api.github.com/users/Gillardo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-14T09:17:54Z","updated_at":"2015-10-20T01:14:18Z","closed_at":"2015-10-20T01:14:18Z","body":"In order to upload a file, i have seen the example code here\r\nhttps://github.com/aspnet/Mvc/commit/437eb93bdec0d9238d672711ebd7bd3097b6537d\r\n\r\nTo get the name of the file that is uploaded, i am using the ContentDispositionHeaderValue class, using the TryParse method, as used in the example, which is like so\r\n\r\n        public async Task<IActionResult> PostAsync(IFormFile file)\r\n        {\r\n            ContentDispositionHeaderValue parsedContentDisposition;\r\n            ContentDispositionHeaderValue.TryParse(file.ContentDisposition, out parsedContentDisposition);\r\n            ....\r\n        }\r\n\r\nBut it seems to include \\\" around the FileName and Name properties.\r\n\r\nMy Content-Disposition is the same as it was in MVC5, like so\r\n    Content-Disposition: form-data; name=\"file\"; filename=\"Key.png\"\r\n\r\nSince these properties are strings anyway, it doesnt need to wrap the values in quotes.\r\n\r\nFix is very simple\r\n\r\n    parsedContentDisposition.FileName = parsedContentDisposition.FileName.TrimStart('\\\"').TrimEnd('\\\"');\r\n    parsedContentDisposition.Name = parsedContentDisposition.Name.TrimStart('\\\"').TrimEnd('\\\"');\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/149391054","html_url":"https://github.com/aspnet/Home/issues/987#issuecomment-149391054","issue_url":"https://api.github.com/repos/aspnet/Home/issues/987","id":149391054,"user":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T01:14:17Z","updated_at":"2015-10-20T01:14:17Z","body":"This issue was moved to aspnet/HttpAbstractions#446"}}