Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MultipartFormDataSection

A helper object for form sections containing generic, non-file data.
Read time 1 minuteLast updated 5 days ago

Definition

public class MultipartFormDataSection : IMultipartFormSection

Remarks

This helper object is used similarly to the WWWForm method WWWForm.AddBinaryData. It is used to define non-file form sections.

Constructors

Constructor

Description

MultipartFormDataSection(System.Byte[])Raw data section, unnamed and no
Content-Type
header.
MultipartFormDataSection(System.String)An anonymous raw data section whose payload is derived from a UTF8 string, with a default
Content-Type
.
MultipartFormDataSection(System.String,System.Byte[])Raw data section with a section name, no
Content-Type
header.
MultipartFormDataSection(System.String,System.Byte[],System.String)A raw data section with a section name and a
Content-Type
header.
MultipartFormDataSection(System.String,System.String)A names raw data section whose payload is derived from a UTF8 string, with a default
Content-Type
.
MultipartFormDataSection(System.String,System.String,System.String)A named raw data section whose payload is derived from a UTF8 string, with a
Content-Type
header.
MultipartFormDataSection(System.String,System.String,System.Text.Encoding,System.String)A named raw data section whose payload is derived from a string, with a
Content-Type
header.

Properties

Property

Description

contentTypeReturns the value to use in this section's
Content-Type
header.
fileNameReturns a string denoting the desired filename of this section on the destination server.
sectionDataReturns the raw binary data contained in this section. Will not return null or a zero-length array.
sectionNameReturns the name of this section, if any.