Title: Simplify usage of Multipart Uploads with WebRequestPSCmdlet · Issue #2112 · PowerShell/PowerShell · GitHub
Open Graph Title: Simplify usage of Multipart Uploads with WebRequestPSCmdlet · Issue #2112 · PowerShell/PowerShell
X Title: Simplify usage of Multipart Uploads with WebRequestPSCmdlet · Issue #2112 · PowerShell/PowerShell
Description: Doing multipart requests with PowerShell is quite complicated and requires several extra steps for large file uploads. An easy example for a small file can be found on StackOverflow. An in depth discussion can be found in this blog post....
Open Graph Description: Doing multipart requests with PowerShell is quite complicated and requires several extra steps for large file uploads. An easy example for a small file can be found on StackOverflow. An in depth di...
X Description: Doing multipart requests with PowerShell is quite complicated and requires several extra steps for large file uploads. An easy example for a small file can be found on StackOverflow. An in depth di...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2112
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Simplify usage of Multipart Uploads with WebRequestPSCmdlet","articleBody":"Doing multipart requests with PowerShell is quite complicated and requires several extra steps for large file uploads. [An easy example for a small file can be found on StackOverflow](http://stackoverflow.com/questions/36268925/powershell-invoke-restmethod-multipart-form-data). [An in depth discussion can be found in this blog post](http://blog.majcica.com/2016/01/13/powershell-tips-and-tricks-multipartform-data-requests/). \n\nIt would be a huge improvement if the WebRequestPSCmdlets (Invoke-RestMethod and Invoke-WebRequest) could be enhanced so that they support Multipart messages directly.\n\nFor an implementation I would expect the following parameters:\n- MultipartFile (Path)\n- MultipartName (Name to be used in Multipart message)\n\n[.NET Core seems to have support for MultipartContent](https://github.com/dotnet/corefx/blob/d0dc5fc099946adc1035b34a8b1f6042eddb0c75/src/System.Net.Http/src/System/Net/Http/MultipartContent.cs) which may simplify the implementation.\n","author":{"url":"https://github.com/ffeldhaus","@type":"Person","name":"ffeldhaus"},"datePublished":"2016-08-28T22:11:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":57},"url":"https://github.com/2112/PowerShell/issues/2112"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:94ed1c79-bf5e-ce58-6f86-faa9ee2a147c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D542:30BDED:10A9884:16B10BB:6A57114C |
| html-safe-nonce | fc608e64cc444054be99095cd65318db1d4d1c9dd8fe60a0d6176b7402362995 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTQyOjMwQkRFRDoxMEE5ODg0OjE2QjEwQkI6NkE1NzExNEMiLCJ2aXNpdG9yX2lkIjoiMTQzMTI0ODc1NzQwNDkzMDM4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 360f42cb4d7ca1a4d5f8e9e28c5cedabe354fc506c1c2b0187a38c6211c0970f |
| hovercard-subject-tag | issue:173670993 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2112/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d3bd84f0dd7e046700c8da3f7950b075ad8e6935658d6d471145d8a820ab405/PowerShell/PowerShell/issues/2112 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d3bd84f0dd7e046700c8da3f7950b075ad8e6935658d6d471145d8a820ab405/PowerShell/PowerShell/issues/2112 |
| og:image:alt | Doing multipart requests with PowerShell is quite complicated and requires several extra steps for large file uploads. An easy example for a small file can be found on StackOverflow. An in depth di... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ffeldhaus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width