Version: 5.4 beta (switch to 5.3)
LanguageEnglish
  • C#
  • JS

Script language

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

MultipartFormDataSection

class in UnityEngine.Networking


Implements interfaces: IMultipartFormSection

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A helper object for form sections containing generic, non-file data.

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

Variables

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.

Constructors

MultipartFormDataSectionRaw data section, unnamed and no Content-Type header.