on 10-12-2019 7:43 PM
Hi
I am using FUIAttachmentsFormCell in my projects in many modules. I have to upload only images to the backend. so I have to restrict selecting videos from iOS photo library. This is possible in iOS UIImagePickerController API. We can control the camera mode.
let imagePickerController = UIImagePickerController()
imagePickerController.mediaTypes = [kUTTypeImage, kUTTypeGIF, kUTTypeBMP] as [String] imagePickerController.cameraDevice = .rear
How to do set the attributes FUIAttachmentFormCell?
SDK Used: v3.2.7
Hi, I did not try the attachment API yet, but it looks like you can filter out,
check the FUIDocumentPickerAttachmentAction
and it's delegate FUIDocumentPickerAttachmentActionDelegate
you can return an instance of UIDocumentPickerViewController, take the init where you can supply an array of document types
https://developer.apple.com/documentation/uikit/uidocumentpickerviewcontroller
alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In SAPFiori 4.0 release, there is a new property in the FUIAddPhotoAttachmentAction which allows developers to choose the media types to be used:
/**
The types of media that are allowed.
Use this property to customize the media types allowed for this attachment action.
If this is not specified, the default is:
``` swift
[kUTTypeMovie as String, kUTTypeImage as String]
```
This means both video and photo are allowed to be chosen.
Constants `kUTTypeMovie` and `kUTTypeImage` are defined in `MobileCoreServices`.
*/
public var mediaTypes: [String]?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mahabaleshwar Hegde checking with the developer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.