openFile

Opens a file with the system's default application for that file type.

This function uses FileKit's openFileWithDefaultApplication to open the file. For example, a PDF file will open in the default PDF viewer, an image will open in the default image viewer, etc.

Note that Android, if you're opening files from custom locations (e.g., FileKit.filesDir or FileKit.cacheDir), you may need to configure FileProvider in your app's AndroidManifest.xml. See FileKit documentation for details.

Parameters

file

The uploaded file to open