The app uses CloudKit container to sync data to iCloud. I use Share Extension to load local file data to CloudKit container.
Now the process to load local file to app is