I can create a file using the FileSystem API, but how do I get it off the phone (Android/iPad)?
I hooked it up to my Ubuntu machine and my Windows machine (Android) and I couldn’t find the file.
I really only need it for iOS, but I am working with my Android Phone.
I saw the MediaLibrary api, but that seems to be for images.
I think in your situation the easiest way would be to use some third-party file storage service, like eg. Dropbox.
Given a path of your file in the local filesystem, eg.
localUri, just share the file with the Share API:
Try out https://snack.expo.io/@sjchmiela/export-the-file. Tapping the button should open iOS’s share action sheet where I, for example, am able to save the file to my Dropbox or Google Drive or Mail.
AFAIR there’s no easy way to just download the file from the iPhone’s file system to the computer if the file is not inside the app you’re currently developing (you’d have to have Xcode and a Mac) or the app has some special capabilities that lets it share some documents to iTunes (https://support.apple.com/en-us/HT201301).
Thanks for the quick response.
Dropbox would be great.
I haven’t seen the Share API before, I will look it up and give it a try.
You’ve given me a lot to try - thanks!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.