Questions tagged [uidocumentpickerviewcontroller]

177 questions
0
votes
1 answer

How to restrict selecting folder for UIDocumentPickerViewController while multiple select option

I have integrated UIDocumentPickerViewController in application. I can access the files from Files app. Need to restrict folder selection from drive and cloud as well. When I enable multiple file "Select" option using "allowsMultipleSelection". when…
RohitK
  • 1,444
  • 1
  • 14
  • 37
0
votes
0 answers

PDF from UIDocumentPIckerViewController appears in Document Directory but not in Bundle

In the code below, I grab a PDF from the UIDocumentPickerViewController and put it in the Document Directory: do { //1 Get the data from the url of Announcements.pdf let urlData = try NSData(contentsOf: url, options:…
user3140521
  • 133
  • 11
0
votes
0 answers

iOS : How to send both a PDF file and a value in a HTTP request?

I need to send a PDF file with a value (basically a String) to an .ASP endpoint. I know how to fetch a file with UIDocumentPickerViewController and how to transform it as a Data object. I've also red this thread as a start to send a file to an…
Rob
  • 4,123
  • 3
  • 33
  • 53
0
votes
0 answers

ios UIDocumentMenuViewController not display files

I want to import file from file list.I have used UIDocumentMenuViewController to display and select file. It shows blank screen when open iCloud. I have created UIDocumentMenuViewController which show all types of files. UIDocumentMenuViewController…
nadim
  • 776
  • 1
  • 12
  • 26
0
votes
0 answers

Get the event of menu selection in uidocumentPickerController

I have implemented UIDocumentPickerViewController in my class.implemented delegate methods. I want to know how would I know which option from documentPickerMenu i have selected. I want to implement the dropbox selection in the presented menu of…
arpita
  • 175
  • 9
0
votes
1 answer

which is this controller in iOS

I was surfing some site in safari. it was attachment button. when I clicked on that button. it showed this controller. Can any1 tell me which is this default functionality safari provide. it is dere in various apps too like slack. its shows…
-1
votes
1 answer

How to use UIDocumentPickerViewController to import files in iOS 16

I was trying to use the UIDocumentPickerViewController to import some pdf files in my Swift UIKit App. I'm not able to properly use the UIDocumentPickerViewController to display the files app and import the files from there. The initialiser…
-1
votes
1 answer

Enable save button when exporting a file to app folder in Files app

When I want to save a file to my App folder in iCloud, the save button is disabled, but it is enabled in other directories. Is there a way to enable it? My code: //... let urls: [URL] = [fileURL] documentPickerExporter =…
Hassan Taleb
  • 2,350
  • 2
  • 19
  • 24
-1
votes
2 answers

Document picker view is showing inverse ? (iOS XR model onwards)

I hit with a weired issue which I haven't seen before... In my app, there is an option to upload the document from the files.. After clicking the upload documents multiple times,, sometimes its showing inverse view,, My app is supported by arabic…
Faizal Malik
  • 197
  • 3
  • 11
-1
votes
2 answers

Detecting length of URL to determine the file type of UIDocumentPickerViewController

I am trying to get the file type from the documentPicker. I Allow my user to upload both PDF/WORD(doc/docx) document types and it is crucial for me to know which one it is so I can rename the file and upload to my AWS S3. Any help appreciated, I…
-1
votes
3 answers

By UIImagePickerController we can access and upload images. How to access and upload documents from iphone?

I'm developing a loan related app where user upload his documents like pay-slips, it-returns, etc. For that I should show the user all the documents he/she having in his/her iPhone. How to show a picker for documents?
Praveen Gowlikar
  • 215
  • 2
  • 16
-2
votes
1 answer

"Use of unresolved identifier" Can't for the life of me figure out what's going on. (Xcode, Swift)

Okay, so I'm playing around with the nfc capabilities on xcode, and potentially writing them. but as I try to move forward, I find that I'm unable to because my "documentTypes." I have made sure that it is set to target the ios platform, I just…
1 2 3
11
12