showFileUploadPicker( )


Opens a file picker that allows an app user to upload media to the app's media manager.

developer preview tag

This method allows app users to select files or capture media from their camera to upload to the application. Files are uploaded to the app's media manager, which is shared across your app and site.

Customize the file picker to limit the maximum number of files that can be uploaded or where the app user can upload media from.

Method Declaration
Copy
Method Parameters
fileTypestring

Type of files that can be uploaded. Supported values:

  • Image
  • Video
  • Gallery
  • Audio
  • Document

Default: Image


optionsFilePickerOptions

File picker options.

Returns
Return Type:Promise<Array<File>>
Did this help?