Skip to content

@capgo/capacitor-file-picker

Pick files, images, videos, and directories with full native support for iOS and Android including HEIC conversion

Pick files, images, videos, and directories with full native support for iOS and Android including HEIC conversion

Start with pickFiles() and the other core methods listed below.

PlatformSupportNotes
iOSYesNative
AndroidYesNative
WebPartialpickFiles / gallery picks via browser APIs; directory pick and HEIC conversion are native-only
  • pickFiles - Pick one or more files from the device.
  • pickImages - Pick one or more images from the gallery. Android/iOS only.
  • pickVideos - Pick one or more videos from the gallery. Android/iOS only.
  • pickMedia - Pick one or more images or videos from the gallery. Android/iOS only.
MethodDescription
pickFilesPick one or more files from the device.
pickImagesPick one or more images from the gallery. Android/iOS only.
pickVideosPick one or more videos from the gallery. Android/iOS only.
pickMediaPick one or more images or videos from the gallery. Android/iOS only.
pickDirectoryPick a directory from the device. Android/iOS only.
convertHeicToJpegConvert a HEIC image to JPEG format. iOS only.
copyFileCopy a file to a new location.
checkPermissionsCheck permissions for reading files. Android only.
requestPermissionsRequest permissions for reading files. Android only.
addListenerAdd a listener for the picker dismissed event. iOS only.
removeAllListenersRemove all listeners for this plugin.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-file-picker.

Keep going from @capgo/capacitor-file-picker

Section titled “Keep going from @capgo/capacitor-file-picker”

If you are using @capgo/capacitor-file-picker to plan storage and file handling, connect it with Using @capgo/capacitor-file-picker for the native capability in Using @capgo/capacitor-file-picker, @capgo/capacitor-data-storage-sqlite for the implementation detail in @capgo/capacitor-data-storage-sqlite, Using @capgo/capacitor-data-storage-sqlite for the native capability in Using @capgo/capacitor-data-storage-sqlite, @capgo/capacitor-file for the implementation detail in @capgo/capacitor-file, and Using @capgo/capacitor-file for the native capability in Using @capgo/capacitor-file.