Questions tagged [uidocumentpickerviewcontroller]

177 questions
2
votes
0 answers

How to prevent editing of files (renaming,sharing etc) while selecting files from a document picker in ios

I have implemented a document picker and want to avoid the editing of files & folder (like the option to rename,copy,share etc ) while I browse through the document picker. Can anyone please help me since there is nothing like allowsEditing for…
2
votes
0 answers

UIDocumentPickerController access denied Cocoa Error 257

I'm trying to import a custom file from one of my apps to another one (let's call them App_A and App_B). If I export the file directly from App_A and in the share sheet I select App_B everything works fine. My problem is that the file is saved in…
Totka
  • 627
  • 6
  • 24
2
votes
2 answers

Directly access file from External drive without UIDocumentPickerViewController

According to this: https://developer.apple.com/documentation/uikit/view_controllers/providing_access_to_directories iOS 13 adds the ability of UIDocumentPickerViewController to select a directory, including directories from 3rd party file…
Banng
  • 531
  • 1
  • 6
  • 19
2
votes
1 answer

UIDocumentPickerViewController: Open folder from Dropbox

How can I use UIDocumentPickerViewController to let the user select a folder from their Dropbox? If I call this, I can browse for folders, but the Dropbox folder is greyed out: [[UIDocumentPickerViewController alloc]…
basteln
  • 2,483
  • 2
  • 19
  • 20
2
votes
1 answer

Showing a save file document picker in iOS without providing local file urls

I want to show a file picker for choosing a "save to file" location on iOS. The UIDocumentViewPickerController offers the method initWithURL:inMode:…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
2
votes
2 answers

How to get correct filename from UIDocumentPicker, didPickDocumentsAt urls: [URL]

I'm trying to get the selected filename with extension from UIDocumentPickerViewController but the filename has "]" at the end of the file extension. Any suggestion on what is the correct way? Here is my code: func documentPicker(_ controller:…
Kuru
  • 23
  • 1
  • 5
2
votes
2 answers

converting Image to pdf but not save in files

Hello i am opening pdf from file to imageview and then on image view i am dropping pin and after that i want to save again as pdf but its not saved in files on iphone i also tried below solution https://stackoverflow.com/a/45001576/10804348 Here Is…
2
votes
1 answer

How to display sandboxed files using a UIDocumentPickerViewController?

I am trying to display documents created by my app using the UIDocumentPickerViewController. Is this possible, or do I need to roll my own? Based on my research, it appears that this can't be done, but that seems like such an unnecessary…
2
votes
1 answer

How can i get the original file name using UIDocumentPickerViewController?

I need to know the type of file that I want to import. I can find out the type from the file name for PHAsset you can use the following method: Attachment *attachment = [[Attachment alloc] init]; …
2
votes
2 answers

Importing files in iOS : UIDocumentPicker vs UIDocumentBrowser

As per the documentation, both UIDocumentPickerViewController and UIDocumentBrowserViewController can be used for importing documents outside an apps sandbox. For selecting & importing a document from local document providers/cloud locations, which…
2
votes
2 answers

How to get the source of the files from UIDocumentMenuViewController or UIDocumentPickerViewController?

I have successfully implemented a feature letting the user pick a file to my app through UIDocumentMenuViewController and UIDocumentPickerViewController. But I cannot find out how can I detect the source of the file. There are sources like Files,…
2
votes
0 answers

Can I get the actual location of an iOS file from a Document Picker?

I can't get UIDocumentPickerMode.open to work. UIDocumentPickerMode.import works, but the resulting url is for the temporary file (for the simulator) …
John F Donigan
  • 111
  • 1
  • 1
  • 8
2
votes
0 answers

Styling the navigation bar in UIDocumentPickerViewController

In my app, the primary theme has blue navigation bars with white bar button items and titles. I set the values for colors like this in the App Delegate. UINavigationBar.appearance().isTranslucent = false UINavigationBar.appearance().tintColor =…
Isuru
  • 30,617
  • 60
  • 187
  • 303
2
votes
1 answer

Document Picker View Controller issue in Swift

I have a button in my view controller, when click a button it open a document picker view controller, i have set type like KUTypePDF and KUTypeZipArchive , when i select any of these item from google drive the picker controller gets dismiss and in…
Hamza
  • 231
  • 1
  • 8
  • 22
2
votes
1 answer

iOS 11 Files app - Google Drive Large Files import issue

I'am using Files app in iOS 11. The Files app is configured for iCloud, Google Drive and DropBox Am able to open text or CSV files with size > 200 MB on iCloud and DropBox. But when i open a text or CSV files with size > 200 MB on Google Drive, i…
KamyFC
  • 858
  • 9
  • 17