{"action":"opened","issue":{"url":"https://api.github.com/repos/primefaces/primeng/issues/1258","repository_url":"https://api.github.com/repos/primefaces/primeng","labels_url":"https://api.github.com/repos/primefaces/primeng/issues/1258/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primeng/issues/1258/comments","events_url":"https://api.github.com/repos/primefaces/primeng/issues/1258/events","html_url":"https://github.com/primefaces/primeng/issues/1258","id":188476333,"number":1258,"title":"FileUpload (p-fileUpload) read files data after posting it to controller","user":{"login":"pserafin","id":19813139,"avatar_url":"https://avatars.githubusercontent.com/u/19813139?v=3","gravatar_id":"","url":"https://api.github.com/users/pserafin","html_url":"https://github.com/pserafin","followers_url":"https://api.github.com/users/pserafin/followers","following_url":"https://api.github.com/users/pserafin/following{/other_user}","gists_url":"https://api.github.com/users/pserafin/gists{/gist_id}","starred_url":"https://api.github.com/users/pserafin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pserafin/subscriptions","organizations_url":"https://api.github.com/users/pserafin/orgs","repos_url":"https://api.github.com/users/pserafin/repos","events_url":"https://api.github.com/users/pserafin/events{/privacy}","received_events_url":"https://api.github.com/users/pserafin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-10T10:50:09Z","updated_at":"2016-11-10T10:50:09Z","closed_at":null,"body":"Hi again,\r\n\r\n`                    <p-fileUpload name=\"files[]\" url=\"{{serviceUrl}}\" (onUpload)=\"onFileUpload($event)\" (onSelect)=\"onFileSelect($event)\" multiple=\"multiple\" maxFileSize=\"10485760\" \r\n                                  [ngModelOptions]=\"{standalone: true}\" (onBeforeUpload)=\"onBeforeFileUpload($event)\" (onError)=\"onFileUploadError($event)\"\r\n                                  invalidFileSizeMessageSummary=\"{{'FILE_IS_TO_BIG' | translate}}\" invalidFileSizeMessageDetail=\"{{'MAX_FILE_SIZE' | translate}}\"></p-fileUpload>`\r\n\r\nlooking for help with reading files data sent by fileupload cntrl. Im currently trying to access files in controller, but first of all I dont know where files should be passed in Http requests. Was trying with:\r\n\r\nvar sth = await new StreamReader(Request.Body).ReadToEndAsync();\r\nbut this gives me only 1 file (Im using multiupload option). And honeslty speaking dunno if that is correct data cuz properties like Request.Body.Length throws an error:\r\nLength = '((Microsoft.AspNetCore.Server.Kestrel.Internal.Http.FrameRequestStream)Request.Body).Length' threw an exception of type 'System.NotSupportedException'\r\n\r\nMy second apporach was to access Http.Request.Form, but here  I get face-punch : 'Form = '((Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest)Request).Form' threw an exception of type 'System.InvalidOperationException'\r\n\r\nOn component side in onBeforeUpload event was trying to use different encryptions\r\n*event.xhr.setRequestHeader(\"Content-Type\", \"application/json; charset=UTF-8\");\r\nevent.xhr.setRequestHeader(\"Content-Type\", \"multipart/form-data\"*/);\r\n\r\nbut still with no luck.\r\n\r\nWill be very gratefull for any help cuz right now I dont know if I'm missing sth or fileupload has some error with angular2 (2.0.1) and .Net Core (1.0.0-preview2-003131).\r\nCurrently using: \"primeng\": \"1.0.0-rc.3\", "}}
{"actor":{"display_login":"pserafin"}}