Questions tagged [uidocumentpickerviewcontroller]

177 questions
0
votes
2 answers

UIDocumentPickerViewController displays empty space at the bottom

Code for the thing let fileBrowser = UIDocumentPickerViewController(documentTypes: listOfAllTypesOfFiles, in: UIDocumentPickerMode.open) fileBrowser.allowsMultipleSelection = false fileBrowser.delegate = self …
Alexander
  • 396
  • 1
  • 11
0
votes
2 answers

Is there a way to preserve capitalisation of original picked file while using UIDocumentPickerViewController?

The iOS 14 SwiftUI app I am developing has two ways of importing the audio files it plays: users can open a UIDocumentPickerViewController and select an audio file accessible on their phone (for example, one in their Dropbox), or they can transfer…
0
votes
1 answer

Presenting the UIDocumentPickerViewController and dismissing it keeps the presented view controller in freeze

How can I present the UIDocumentPickerViewController and dismissing it keeps the presented view controller in freeze
0
votes
1 answer

How to preview multiple PDF files in iOS similar to WhatsApp upload documents functionality?

I am integrating UIDocumentPickerViewController to show the local storage (File App) for browsing and selecting the PDF. Right now i am selecting a single PDF and previewing it by passing the URL to WKWebview which is working fine. But when i enable…
0
votes
1 answer

How to check the PDF size before uploading in iOS?

I have a requirement of uploading PDF file which is not more than 2 MB. Right now I am using the UIDocumentPickerViewController to browse the PDF files. Is there any way to check whether the PDF's size is larger than 2 MB? I am able to get the size…
User1075
  • 819
  • 15
  • 36
0
votes
0 answers

UIDocumentPickerViewController missing cancel button to dismiss when using directoryURL

We are presenting a UIDocumentPickerViewController with the URL to the URLForUbiquityContainerIdentifier and for whatever reason, it does not show the cancel button for all our users. Sometimes, it is completely missing and a user cannot dismiss…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
0
votes
2 answers

Check condition for a zip file in UIDocumentPickerViewController

This is my code for calling UIDocumentPickerViewController to choose the files for my firmware update which have to be .zip only. When I press on "Select" button, the Document Picker View shows up: @IBAction func selectButtonAction(_ sender:…
Lilya
  • 495
  • 6
  • 20
0
votes
0 answers

Swift Document Picker Directory URL

I implemented the UI Document Picker to select files from iCloud Drive, local storage etc. and it all works fine so far. As we all know it is possible to also select files from apps like Dropbox, OneDrive etc. but for a user who does not know this…
0
votes
1 answer

Upload file to Firebase Storage Error 404 - "Not Found. Could not get object"

I am trying to use UIDocumentPickerViewController to select a PDF file and upload to Firebase Storage, unfortunately I keep getting a false success with the following in my console. Does anybody know what I may be doing wrong ? Thank you in…
0
votes
1 answer

Problems with saving an image from UIDocumentPickerViewController / .stopAccessingSecurityScopedResource()

I have a viewcontroller that presents my custom ImagePicker class. One of the presented options is to select an image from 'Files', using UIDocumentPickerViewController. Picking an image works fine, but i want to close the security resources conform…
DeveloperSammy
  • 167
  • 1
  • 11
0
votes
1 answer

Cancel button is not available in UIDocumentPickerViewController when DirectoryUrl property is set

In Xamarin.Forms application, i am using displaying a file picker to user using UIDocumentPickerViewController. It has one property DirectoryUrl which can be used iOS 13.0 and above. Basically as per documentation this property sets the initially…
0
votes
1 answer

Need to allow ppt files to be selected by UIDocumentPicker

I need to allow ppt,docx, xlsx and pdf files only to be picked up by document picker in my application. What I need to set as document types when I initialize my document picker?
0
votes
1 answer

why my UIDocumentPickerViewController returns me a url not reachable?

I am using a uIdocumentPickerViewController to upload a pdf file in firebase but when I try to upload it, I get an error saying that this file is not reachable. Here is the code of the delegate of my uidocumentPickerViewController : func…
sofiane_dv
  • 71
  • 7
0
votes
2 answers

Cannot open PDF using xcode for my iphone app

I have an iPhone app and I implemented a UIDocumentPickerViewController. Once the user chooses a PDF I receive the URL of the PDF. I'm trying to get the Data for that PDF so I could send it to my server, but I get the following response: Error…
Nimrod Shai
  • 1,149
  • 13
  • 26
0
votes
0 answers

Error in opening UIDocumentPickerViewController

I am trying to present UIDocumentPickerViewController from my Viewcontroller. Sometimes I get error saying Could not communicate with a helper application. The way I present my DocumentPickerViewController is: BHFilePickerViewController…