Questions tagged [uidocumentpickerviewcontroller]
177 questions
0
votes
0 answers
ios UIDocumentPickerViewController is not remembering last folder
I have a pretty simple swift code to open Files app and let the user browse to any folder and pick a file.
func goToFilesApp() {
var documentPicker: UIDocumentPickerViewController
if #available(iOS 14, *) {
let types: [UTType] =…

Wonton
- 1,033
- 16
- 33
0
votes
0 answers
is the temporaryDirectory of FileManager automatically removed by iOS? if so when?
I am adding an option in my App to backup everything to a file.
For that, I am serializing all my objects to a dictionary that I save in a single file in the path provided by FileManager.default.temporaryDirectory. Then I ask the user for a path to…

StuckOverFlow
- 851
- 6
- 15
0
votes
0 answers
How to move files from inside app to outside
I try to move files from documentDirectory to SD Card(connected using a card reader and Lightning). I use UIDocumentPickerViewController. If I move a single file and it exists inside the destination SD Card folder, DocumentPicker gives options…

Dima
- 1
- 1
0
votes
0 answers
Disabling UIDocumentPickerViewController's allowsMultipleSelection does not work with rapid selection
I have implemented a UIDocumentPickerViewController using the below code and I want to allow the user to select only a single document. However when the document picker is presented and I rapidly tap on a document twice, the delegate is called twice…

Tejas K
- 682
- 11
- 28
0
votes
0 answers
Strange and unusable URLs when using UIDocumentPickerViewController to access iCloud directories/files
I have an iOS application that uses UIDocumentPickerController to present the user with a dialog where they can pick the location of a directory containing files for upload
This is working just fine in most cases but if they pick a directory that is…

gregt
- 1
- 1
0
votes
0 answers
The files are grayed out in UIDocumentPicker
I’m unable to select the document documents they are greyed out
I have tried with
UIDocumentPickerViewController - each file that was picked once is then grayed out
import UIKit
import MobileCoreServices
import UniformTypeIdentifiers
class…

Aswanth
- 1
- 1
0
votes
1 answer
UIDocumentpicker Content are greyed out
I’m using UIViewControllerRepresentable for Document picker presentation in swiftUI. The issue is that I'm not able to select the video audio pdf it's all showing in a frozen manner. I need to fix this issues for the iOS 14 and above version. I'm…

Aswanth
- 1
- 1
0
votes
2 answers
Move file from app to phone documents folder
So in my app I have created a Test.JSON file that I want the user to be able to move to the documents directory, outside of the app. I understand I have to do this by using UIDocumentPickerViewController, but haven't found any way to proceed. I have…

Dragounow
- 13
- 7
0
votes
1 answer
How is it specific use UIDocumentPickerViewController in SwiftUI
Have this code:
struct ContentView: View {
var d1: [String: Any]? = nil
var res: ValidationResult?
let documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: [.jpeg, .png])
documentPicker.delegate = self //…

János
- 32,867
- 38
- 193
- 353
0
votes
0 answers
Importing '.db' files using UIDocumentPickerViewController
I am trying to import .db files using UIDocumentPickerViewController. Only need to show files with db extension (eg: sample.db) in document picker.
There is an option to provide document type as Uniform Type Identifiers, but there is no UTIs found…

ajith Kumark
- 333
- 1
- 3
- 16
0
votes
1 answer
How to access user selected folder in iOS
I'm looking for an iOS API that allows accessing a user-selected folder in place (without importing it). It seems to be possible with native frameworks from Apple. How I expect it to work:
User selects a folder using the native document picker.
App…

Darrarski
- 3,882
- 6
- 37
- 59
0
votes
1 answer
How can I copy a file from DocumentPicker to my own application?
I'm asking the user to select an image or file in the "Folder" application in iPhone with DocumentPicker. How can I transfer this selected file or image to my own application?
I got this error: Error Domain=GSLibraryErrorDomain Code=3 "Generation…

Ufuk Köşker
- 1,288
- 8
- 29
0
votes
0 answers
How to upload Pdf, Docs, txt, Images in Firebase Storage using Swift
I'm trying creating a iOS app where the user can upload pdf, images, docs etc...,
This is my code - it works just one time; when I try again I get the error shown down below.
I don't understand why - I'm new to iOS development
class…

Mariglen Meta
- 41
- 6
0
votes
2 answers
Unable to save images to Egnyte/Google Drive/Dropbox - Swift/Xcode
UPDATE
I tried the following code solution and it allows for me to save to Google Drive now, but Egnyte and Dropbox are still greyed out.
func exportPhotosToFileLocation() {
var fileURLArray = [URL]()
for data in…

Christian W
- 353
- 2
- 12
0
votes
0 answers
How can I add files to the iOS simulator in a CI environment?
I would like to include a UI test in my project that exercises its interaction with UIDocumentPickerViewController. The test will need to run on a CI machine, which needs to be able to wipe the simulator before each build, and operate without a…

Frank Schmitt
- 25,648
- 10
- 58
- 70