Pick files from Storage
Pick files from Storage
Use this component to pick files from the filesystem.
To get started using it, you must use KmpFilePicker. All functions are thread safe and main thread safe.
Below are the functions available:
_7 KmpFilePicker.getFileFromPicker{_7 val pickedFile = it // returns the file path of the selected file_7 }_7_7 KmpFilePicker.getMultipleFilesFromPicker{_7 val listOfFilesSelected = it // returns the list of Files (Multi Select) from the FileSystem_7 }
Android Setup
On android please add the following into your manifest file
_1<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />