LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

UnityWebRequest.SerializeFormSections

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

Parameters

multipartFormSectionsA List of IMultipartFormSection objects.
boundaryA 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.