Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UnityWebRequest.SerializeFormSections

public static byte[] SerializeFormSections(List<IMultipartFormSection> multipartFormSections, byte[] boundary);

Parameters

multipartFormSections A List of IMultipartFormSection objects.
boundary A unique boundary string to separate the form sections.

Returns

byte[] A byte array of raw multipart form data.

Description

Converts a List of IMultipartFormSection objects into a byte array containing raw multipart form data.

See Also: GenerateBoundary.

Did you find this page useful? Please give it a rating: