Allows picking one or more files/directories on iOS, including files from outside your app's sandbox. Under the covers, we use the iOS UIDocumentPickerViewController and security-scoped URLs to accomplish this.
npm install capacitor-ios-file-picker
npx cap sync
chooseDirectory() => Promise<UrlBookmark>
Returns: Promise<UrlBookmark>
accessDirectory(options: UrlBookmark) => Promise<SecureUrl>
Param | Type |
---|---|
options |
UrlBookmark |
Returns: Promise<SecureUrl>
releaseDirectory(options: UrlBookmark) => Promise<void>
Param | Type |
---|---|
options |
UrlBookmark |
Prop | Type |
---|---|
urlBookmark |
string |
Prop | Type |
---|---|
url |
string |