Help with POST multipart/form-data

This page summarizes the projects mentioned and recommended in the original post on /r/PowerShell

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • PowerShell

    PowerShell for every system!

  • function New-MultipartFileContent { [OutputType('System.Net.Http.MultipartFormDataContent')] [CmdletBinding()] param( [Parameter(Mandatory)] [System.IO.FileInfo]$File, [string]$HeaderName = 'file' ) #https://github.com/PowerShell/PowerShell/issues/9241#issuecomment-477467675 # build the header and make sure to include quotes around Name # and FileName like https://github.com/PowerShell/PowerShell/pull/6782) $fileHeader = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new('form-data') $fileHeader.Name = "`"$HeaderName`"" $fileHeader.FileName = "`"$($File.Name)`"" # build the content $fs = [System.IO.FileStream]::new($File.FullName, [System.IO.FileMode]::Open) $fileContent = [System.Net.Http.StreamContent]::new($fs) $fileContent.Headers.ContentDisposition = $fileHeader $fileContent.Headers.ContentType = [System.Net.Http.Headers.MediaTypeHeaderValue]::Parse('application/octet-stream') # add it to a new MultipartFormDataContent object $mp = [System.Net.Http.MultipartFormDataContent]::new() $mp.Add($fileContent) # get rid of the quotes around the boundary value # https://github.com/PowerShell/PowerShell/issues/9241 $b = $mp.Headers.ContentType.Parameters | Where-Object { $_.Name -eq 'boundary' } $b.Value = $b.Value.Trim('"') # return an array wrapped copy of the object to avoid PowerShell unrolling return @(, $mp) }

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • 3 lines of code don't understand the results.

    1 project | /r/PowerShell | 8 Dec 2023
  • Task Scheduler -windowstyle hidden / minimized

    1 project | /r/PowerShell | 7 Dec 2023
  • Just messing around with arrays and efficiency in PS, thought I'd share

    1 project | /r/PowerShell | 4 Dec 2023
  • Register-ArgumentCompleter: how to fall back to file completion when completing a flag such as "--foo="

    1 project | /r/PowerShell | 16 Oct 2023
  • New PowerShell Version - v7.3.7: [7.3.7] - 2023-09-18

    1 project | /r/PowerShell | 20 Sep 2023