SocialRequest.addMultipartContainer
-----------------------------------

Adds multipart data for this request.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Social](component_Social.md) | [5.3](newinversion53.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "SocialRequest.addMultipartContainer"; Request; Data; Name; MimeType; FileName ) 

**MBS**( **"SocialRequest.addMultipartContainer";** /\* Adds multipart data for this request. \*/  
**$Request**; /\* The reference number for the social request as you got it from [SocialRequest.New](SocialRequestNew.md) function. \*/   
**$Data**; /\* The container to get data from. \*/   
**$Name**; /\* The name for this parameter.e.g. "image" \*/   
**$MimeType**; /\* The MIME type for this data.e.g. "image/jpeg" \*/   
**$FileName**) /\* The file name for this data.e.g. "image.jpg" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Request | The reference number for the social request as you got it from [SocialRequest.New](SocialRequestNew.md) function. | $request |
| Data | The container to get data from. |  |
| Name | The name for this parameter. | "image" |
| MimeType | The MIME type for this data. | "image/jpeg" |
| FileName | The file name for this data. | "image.jpg" |

### Result

Returns OK or error.

### Description

Adds multipart data for this request.  
Specify a named MIME multi-part value. If you set parameters, the parameters will automatically be added as form data in the multi-part data.  
You can use [Text.FileExtensionToMimeType](TextFileExtensionToMimeType.md) to find the mime type for a file extension.  
### See also

- [SocialRequest.addMultipartText](SocialRequestaddMultipartText.md)
- [SocialRequest.New](SocialRequestNew.md)
- [Text.FileExtensionToMimeType](TextFileExtensionToMimeType.md)

This function is free to use.

Created 28th August 2015 , last changed 12nd June 2020

  
[SocialRequest.SetURL](SocialRequestSetURL.md) - [SocialRequest.addMultipartText](SocialRequestaddMultipartText.md)

[HTML Version](SocialRequestaddMultipartContainer.shtml)