{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2437","repository_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs","labels_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2437/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2437/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2437/events","html_url":"https://github.com/PowerShell/PowerShell-Docs/issues/2437","id":324057758,"node_id":"MDU6SXNzdWUzMjQwNTc3NTg=","number":2437,"title":"Unable to send a file on power shell while same is working on postman","user":{"login":"JyotiPrakashMallick","id":6301012,"node_id":"MDQ6VXNlcjYzMDEwMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/6301012?v=4","gravatar_id":"","url":"https://api.github.com/users/JyotiPrakashMallick","html_url":"https://github.com/JyotiPrakashMallick","followers_url":"https://api.github.com/users/JyotiPrakashMallick/followers","following_url":"https://api.github.com/users/JyotiPrakashMallick/following{/other_user}","gists_url":"https://api.github.com/users/JyotiPrakashMallick/gists{/gist_id}","starred_url":"https://api.github.com/users/JyotiPrakashMallick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JyotiPrakashMallick/subscriptions","organizations_url":"https://api.github.com/users/JyotiPrakashMallick/orgs","repos_url":"https://api.github.com/users/JyotiPrakashMallick/repos","events_url":"https://api.github.com/users/JyotiPrakashMallick/events{/privacy}","received_events_url":"https://api.github.com/users/JyotiPrakashMallick/received_events","type":"User","site_admin":false},"labels":[{"id":274106943,"node_id":"MDU6TGFiZWwyNzQxMDY5NDM=","url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/labels/Issue-Question","name":"Issue-Question","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-17T14:49:49Z","updated_at":"2018-06-06T20:55:16Z","closed_at":null,"author_association":"NONE","body":"I have a script where I am uploading a excel file and it is giving me error while trying the same on Postman it worked fine for me. Please refer the details below:\r\n\r\nMethod Type : POST Header : (key)authorization : Value: 09368290_458115d711a30e23 Body : form-data filename : C:\\Desktop\\Test_Template.xlsx Content-Type : application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Content-Disposition : form-data\r\n\r\nThe above part is working fine on Postman but while using the following code it is not working\r\n\r\n$validatorheaders = New-Object \"System.Collections.Generic.Dictionary[[String],[String]]\" $validatorheaders.Add(\"authorization\", \"09368290_7bdaad3b3761a654\") \r\n$bodyLines = \r\n   ( 'Content-Disposition: form-data; filename=C:\\Desktop\\Test_Template.xlsx', \r\n    'Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' )\r\n\r\n$Response=Invoke-Restmethod -Method POST -Uri $ValidatorAPI -Headers $validatorheaders -ContentType \"multipart/form-data\" -Body $bodyLines -verbose\r\n\r\nPlease refer the screenshot attached\r\n![body](https://user-images.githubusercontent.com/6301012/40185170-a32f22c6-5a0f-11e8-82fb-a95dc4292a35.PNG)\r\n![header](https://user-images.githubusercontent.com/6301012/40185171-a35956b8-5a0f-11e8-9128-3e8622e7e699.PNG)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/comments/395210675","html_url":"https://github.com/PowerShell/PowerShell-Docs/issues/2437#issuecomment-395210675","issue_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2437","id":395210675,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTIxMDY3NQ==","user":{"login":"doctordns","id":3630329,"node_id":"MDQ6VXNlcjM2MzAzMjk=","avatar_url":"https://avatars3.githubusercontent.com/u/3630329?v=4","gravatar_id":"","url":"https://api.github.com/users/doctordns","html_url":"https://github.com/doctordns","followers_url":"https://api.github.com/users/doctordns/followers","following_url":"https://api.github.com/users/doctordns/following{/other_user}","gists_url":"https://api.github.com/users/doctordns/gists{/gist_id}","starred_url":"https://api.github.com/users/doctordns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctordns/subscriptions","organizations_url":"https://api.github.com/users/doctordns/orgs","repos_url":"https://api.github.com/users/doctordns/repos","events_url":"https://api.github.com/users/doctordns/events{/privacy}","received_events_url":"https://api.github.com/users/doctordns/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T20:55:16Z","updated_at":"2018-06-06T20:55:16Z","author_association":"CONTRIBUTOR","body":"This is a tough call. We ALL want the customers/users to have great experiences and want to help where things don't work as hoped.  But this repo is NOT the place for support issues. If (the royal) we have not explained something well enough or if our explanations do not cover valid use cases, then let's fix that! But where users can't make things work, whether from their own incompetence, due to a bug or otherwise  - well there are other support channels open. "}}
{"actor":{"display_login":"doctordns"}}