ImagePicker.HasMedia
--------------------

Queries whether media exists.

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

MBS( "ImagePicker.HasMedia" ) ### Parameters

none

### Result

Returns 1, 0 or error.

### Description

Queries whether media exists.  
Returns 1 if there was an image or video selected, else 0.  
### See also

- [ImagePicker.ClearMedia](ImagePickerClearMedia.md)
- [ImagePicker.MediaOriginalImage](ImagePickerMediaOriginalImage.md)

### Example Databases

- [iOS/Examples/iOS ImagePicker](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/iOS%20ImagePicker.shtml#5ScriptAnchor_)

### Blog Entries

- [Image Picker for FileMaker iOS SDK apps with MBS Plugin](https://www.mbsplugins.de/archive/2017-06-20/Image_Picker_for_FileMaker_iOS/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 17th June 2017 , last changed 18th June 2017

  
[ImagePicker.GetVideoMaximumDuration](ImagePickerGetVideoMaximumDuration.md) - [ImagePicker.IsCameraDeviceAvailable](ImagePickerIsCameraDeviceAvailable.md)

[HTML Version](ImagePickerHasMedia.shtml)