How do I allow a user to browse to a file on iOS?

My app allows users to export their data to a text file, in order to move it to a new device, if they need to.

On iOS, how do I allow a user to browse their device’s file system to find this file, for import back into my app?

For Android, I use the CnkFileManager’s “pickfile” function, but this plugin doesn’t support iOS.

iOS doesn’t allow you to explore the device’s file system. You are limited to the four sandbox folders. In Corona terms, you most likely would save files to system.DocumentsDirectory and use the LFS functions to get a list of files and present them to the user. There is no Corona supported “File Picker”, though there might be a plugin in the Marketplace.

Rob

You can use the Doc Picker plugin which I’ve used in the past.  The plugin was updated last year.

https://marketplace.coronalabs.com/corona-plugins/doc-picker

Docs: https://scotth.tech/plugin-docPicker

Thank you for the replies, I have a follow up question.

Q: When a user saves an email attachment “To My iPhone”, is that the equivalent to the DocumentDirectory corona’s system library provides access to?