SocialComposer.AddImageFile
---------------------------

Adds an image to the post.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SocialComposer](component_SocialComposer.md) | [7.3](newinversion73.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

### Deprecated

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

MBS( "SocialComposer.AddImageFile"; Path ) 

**MBS**( **"SocialComposer.AddImageFile";** /\* Adds an image to the post. \*/  
**$Path**) /\* The native file path of the image file to add. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The native file path of the image file to add. |  |

### Result

Returns OK or error.

### Description

Adds an image to the post.   
Returns error if the additional image will not fit within the character space currently available, or if the sheet has already been presented to the user.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
### See also

- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)
- [SocialComposer.AddImageContainer](SocialComposerAddImageContainer.md)

This function is free to use.

Created 11st June 2017 , last changed 29th January 2023

  
[SocialComposer.AddImageContainer](SocialComposerAddImageContainer.md) - [SocialComposer.AddURL](SocialComposerAddURL.md)

[HTML Version](SocialComposerAddImageFile.shtml)