The definition of "multipart/form-data" is available at the [IANA] registry. I have tried my best to explain the use of the code described for multipart/form-data post needed many times while working with APIs in C#. MimeTypeResolver and adding file name extensions and magic bytes Default: 'utf8'. PHP Supports uploading to serverless environments, AWS S3, Azure, GCP or the filesystem. Unfortunately this is no longer possible in version 4.0 of HttpClient.