Questions tagged [uidocumentpickerviewcontroller]

177 questions
4
votes
3 answers

Swift Document Picker, can not reach the file

I am writing a project which involves picking a file and getting the content of the file. However, I think it is not reaching the correct url of the file. Here is the function where it calls the document picker. It is activated by a…
user12782772
  • 43
  • 1
  • 3
4
votes
1 answer

Unable to pick pages file with UIDocumentPickerViewController

I'm using UIDocumentPickerViewController for picking document. Below are the specified UTIs : NSArray *types =…
iAkshay
  • 1,143
  • 1
  • 13
  • 35
4
votes
1 answer

Files with imported UTIs are greyed out in UIDocumentPickerViewController

In my iOS app I am opening a UIDocumentPickerViewController to import .sty files (MIDI styles). For this I have declared a custom UTI in Imported UTIs and in Document Types. The problem is that on my customer’s iPad Air 2, these files appear greyed…
bio
  • 669
  • 4
  • 14
4
votes
0 answers

UIDocumentPickerViewController error after closing

I am using a DocumentPickerViewController to import a document in my app. The picker does it's work, there are no bugs and no crashes but every time after a document is picked or the view controller is canceled I get a log with the following…
4
votes
2 answers

UIDocumentPickerViewController which cloud service is selected by user?

I want to select files from Google drive and One drive cloud services for that purpose I am using UIDocumentPickerViewController ex: func didPressOneDriveChoose() { let importMenu = UIDocumentPickerViewController(documentTypes: [(kUTTypePDF as…
4
votes
2 answers

(Swift) How can I get a Data representation of the documentPicker URL

I use the didPickDocumentAt function to retrieve the url of the picked file in the DocumentPickerViewController. I have a multipart upload function that uses alamofire to upload files to the backend. func documentPicker(_ controller:…
4
votes
1 answer

Alternatives for UIDocumentMenuViewController in iOS 11

Is it possible to implement the look and feel of UIDocumentMenuViewController (deprecated in iOS 11) in iOS 11? The closest I found in iOS 11 is UIDocumentPickerViewController but this doesn't allow me to show up a menu of document providers,…
user1210182
  • 595
  • 5
  • 11
3
votes
1 answer

How to read files of External Mass Storage Devices Without DocumentPicker? (iOS)

Just to give some context, there is an iOS app I'm building (in Xamarin) that requires the ability to fetch files (in an automatic way without having the user to navigate to the files and select them manually) that are stored on External Storage…
3
votes
1 answer

How to get file name and file size from UIDocumentPickerViewController in iOS 14?

I have to create feature for upload some document in pdf type and have to show name and file size with file that I selected from UIDocumentPickerViewController 's delegate before upload it. How can I get its name and file size ?
Nawin P.
  • 223
  • 1
  • 4
  • 11
3
votes
0 answers

Delegate method UIDocumentPickerViewController are not working on simulator

Delegate method are not working for UIDocumentPickerViewController from upload action want to load document from simulator for uploading to other action... func uploadFile(){ let documentPickerController =…
kiran
  • 4,285
  • 7
  • 53
  • 98
3
votes
1 answer

The file couldn't be opened because there is no such file when getting FileAttributesKey - Swift

I am trying to get the FileAttributesKey using FileManager in iOS using Swift. When I try that, I am getting the following error" Error Domain=NSCocoaErrorDomain Code=260 "The file “Personal%20Narrative%20Essay.txt” couldn’t be opened because there…
Todd
  • 500
  • 4
  • 10
3
votes
1 answer

Memleak with UIDocumentPickerViewController via SwiftUI

The application is built for iOS. I want user to choose a file from it's directory and get the url of chosen one. Apple recommends UIDocumentPickerViewController to solve this issue. I wrapped it in UIViewControllerRepresentable, so it is the first…
3
votes
1 answer

Couldn't communicate with a helper application when i pick the zip file from the iCloud using UIDocumentPickerViewController

Whenever i pick the file from the iCloud using UIDocumentPickerviewcontroller from my application but it will show this alert on iPhone simulator. NSArray *types = @[(NSString*)kUTTypeArchive]; UIDocumentPickerViewController *docPicker =…
3
votes
1 answer

Alternative UIActivityViewController save dialog for Mac Catalyst or solution for UIDocumentPickerViewController throwing error code 260

I am looking for an alternative export menu other then UIActivityViewController for a Mac Catalyst app. While this works, the user can not choose where they want to save the file (the file is a JSON file of all the items in a list) and I would like…
3
votes
0 answers

UIDocumentMenuViewController have wrong frame listView

Good day to all. I support the old version of the application written on Objective C . I want to implement a functional - File Browser(File Provider). But using UIDocumentMenuViewController or UIDocumentPickerViewController i have problem with…
1
2
3
11 12