33 questions
0
votes
1
answer
105
views
How to read/write to a folder from the iOS Files app accross app restarts
I'm developing a SwiftUI app that has to sync files to a folder in Dropbox, Google Drive or any file provider that exists on the iOS Files app. I cannot use the Dropbox or Google Drive APIs because I ...
-1
votes
1
answer
759
views
How to read file shared from iOS Files app
I have an app that allows me to export (and import) its contents.
While working to replace the deprecated 'unarchiveTopLevelObjectWithData' unarchiveTopLevelObjectWithData (still ongoing) I ran into ...
1
vote
0
answers
219
views
How to save a file in Files iOS system app in iOS 17 Swift
Since iOS 17, I can't find a way to save a file (.pdf, .mp3, .m4a, etc.) in the "Files" iOS system app in Swift. I am using Xcode 15.2.
In iOS 15 and iOS 16, here is my code and it works on ...
0
votes
1
answer
211
views
Copy file from Files app fails even with startAccessingSecurityScopedResource
My app supports opening a document in place. However, under a certain condition, I would like to copy it to my local sandbox. I followed Copy file from iOS 11 Files app to sandbox and used [NSURL ...
2
votes
0
answers
263
views
SwiftUI file importer without buttons
I'm making some maintenance on my iOS app with SwiftUI. One feature of this app is open the Files app (using fileimporter) to select a file, import it and make some analysis to it. This has been ...
1
vote
0
answers
337
views
How to fix [ShareSheet] cancelled request - error: The operation couldn’t be completed. Invalid argument
Can't save file from SwiftUI app.
Xcode says
[NSExtension] Extension request contains input items but the extension point does not specify a set of allowed payload classes. The extension point's ...
1
vote
0
answers
1k
views
How to make iOS app show in Files app Locations?
My iOS app is something like a cloud service, which interacts with Files app, downloading files into it and uploads from it.
When I open Files app and tap Browse, then Edit, I can see a list of ...
5
votes
0
answers
492
views
expose documents from iOS App Group Container in Files app
My iOS app and its extension successfully share files locally through an app-group container. The app also exposes files in the Documents folder of its app container to the Files app, after setting ...
0
votes
3
answers
2k
views
When a user on an iPhone downloads a JPG file from my site, is it possible to direct that file to end up in their camera roll?
I don't have an iPhone so it's hard for me to test this, but I believe at the moment if someone downloads a JPG file from my site they then have to locate their Files app, and find the Downloads ...
0
votes
1
answer
2k
views
iOS: Open saved image inside the native Files app
My app allows saving images to the native Files app. I do it like this:
func save(imageData: Data,
toFolder folderName: String,
withFileName fileName: String) {
DispatchQueue....
4
votes
1
answer
15k
views
How can I view my offline/local HTML file on iPad/iPhone?
in iOS (iPad) in the files app, I want to view a HTML file, I don’t want to open it and see the code, I want to see it as the end user: When i click on the html file, it shows a preview (an empty page)...
0
votes
1
answer
330
views
Is it possible to save a file that shows up in the files app in an iPad Swift playgrounds app
I can't seem to add an info.plist file so I‘m not sure I can save to iCloud, is there any other way to store a file and have it accessible from the files app on iPad?
0
votes
1
answer
1k
views
Unable to preview files with QuickLook
I am using this simple tool for previewing different files in my app, but none of them is being successfully previewed.
First time I try to preview any file it opens preview controller with message ...
0
votes
1
answer
370
views
Missing "Select" option to select multiple files in UIDocumentPickerViewController
Does anyone know why there is no Select option when tapping 3 dots in UIDocumentPickerViewController like it is in a Files app? Even if multipleSelection is set to true.
I noticed that it appears on ...
1
vote
0
answers
310
views
Can an embedded library invoked via FFI read an iOS app's sandboxed filesystem?
I'm toying with the notion of building an iOS app powered by a Rust library. I want this app to use the Files App for storing plain text files that my app will manipulate, but I don't know if my Rust ...
2
votes
0
answers
259
views
Displaying UIDocuments in Files App iOS 13
I'm trying to integrate my application with the Files App so that documents saved in my application are showed in the Files App, either under the 'iCloud Drive' or 'On My iPhone' folders. I've added ...
1
vote
1
answer
7k
views
Can't see my app folder under iOS "Files" app on iPad but only on iPhone
I am trying to implement a feature where users can define their own documents using the "Files" app of iOS. I read that in order for your app to get access to the Files app you need to define these ...
3
votes
2
answers
2k
views
How to specify a filename when saving pdf document to iOS Files App?
Using the PDFKit I have created a pdf document within my app. I can successfully show it in a preview and from the preview controller I use the following code to present the user the share actions:
@...
2
votes
0
answers
281
views
How do you process multiple files shared from the iOS Files App
I have an app that can open files shared with it. If I select multiple files in the iOS Files app and share them with my app, my UIApplicationDelegate's open url handler is called once with the URL ...
0
votes
0
answers
288
views
Display name For File provider extension
I would like to know how to modify the display name programatically on a file provider extension as shown in the image below
How to add this "Personal"
0
votes
1
answer
434
views
iOS - Export (100+) files to Google Drive
My app works with pictures and annotations files. The annotation files are just XML files containing information for each picture. That way, a user can have for example a dataset of 100 pictures + 100 ...
0
votes
0
answers
441
views
Any better suggestions to debug iOS FileProvider extension?
I'm working on a document-based app and hence also working on the FileProvider extension for the app, as Apple suggests it
I've pretty much achieved all the basic functionalities for the extension(...
2
votes
2
answers
216
views
"On my iPhone" option is not visible in simulator.
While saving files "On My iPhone" option is not visible in simulator. Can anyone please help me with this.
2
votes
1
answer
3k
views
Is it possible to write a file to the iOS filesystem with Expo so that it is accessible via the iOS 11 Files app
I'm currently writing an audio recording to the iOS filesystem using the Expo library for React Native. I'm using the FileSystem.documentDirectory as per the expo docs, however this file isn't ...
1
vote
0
answers
43
views
File management app without files-app integration? [duplicate]
I have built an iOS app (a file management), plus its been there in app store from a year, now when i try inserting a update now my app got rejected saying Apps that enable users to view and select ...
1
vote
1
answer
280
views
iOS11 save and see .txt file in Files app
I am trying to save the string in .txt file and wants to see that .txt file in Files app. It is possible to save and read the file in documents directory but I am struggling to save and see in Files ...
11
votes
4
answers
12k
views
How to open native files app in ios?
How do i open the native files app of ios using url scheme or some other way ?
I tried searching url scheme but had no luck.
There seems to be no answer to this question there is thread open for ...
1
vote
2
answers
2k
views
UIDocumentPickerViewController buttons look disabled but work -- why?
I am using UIDocumentPickerViewController to export images to the Files app in iOS 11. The picker comes up, and I am able to pick a destination for the files. I get the callback that the files were ...
5
votes
2
answers
9k
views
Copy file from iOS 11 Files app to sandbox
I want to copy a file from the iOS 11 Files app to my local app sandbox. For testing purposes it is assumed that the file is locally available in the Files app (downloaded from iCloud to the local ...
18
votes
1
answer
2k
views
Import multiple files in app via iOS11 files app
I am trying to import multiple files from the new iOS11 files app into my app. However when I select two or more files (both of the same type, pdf) in the files app then hit the share button and ...
0
votes
1
answer
1k
views
How to set app folder icon in iOS 11 files app
The documents stored in my app show up in the iOS 11 files app under “on my iPhone”. The folders in this directory do have the app icon of the corresponding app on their folder.
This works correctly ...
14
votes
4
answers
9k
views
Open iOS 11 Files app via URL Scheme or some other way
My app is now sharing Documents directory on iOS 11 Files app "On My iPhone" section.
(Thanks to this article: Working with the Files App in iOS 11)
Question is how to open this directory or at ...
3
votes
1
answer
2k
views
Files App View Controller?
In Pages, Numbers, and Keynote 3.3 for iOS, Apple has done away with its custom file manager and instead uses the a version of the iOS 11 Files App to allow the user to choose and save files within ...