8000 Simplify usage of Multipart Uploads with WebRequestPSCmdlet · Issue #2112 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content
Simplify usage of Multipart Uploads with WebRequestPSCmdlet #2112
@ffeldhaus

Description

@ffeldhaus

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.

It would be a huge improvement if the WebRequestPSCmdlets (Invoke-RestMethod and Invoke-WebRequest) could be enhanced so that they support Multipart messages directly.

For an implementation I would expect the following parameters:

  • MultipartFile (Path)
  • MultipartName (Name to be used in Multipart message)

.NET Core seems to have support for MultipartContent which may simplify the implementation.

Metadata

Metadata

Assignees

Labels

Committee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0