Questions tagged [uidocumentpickerviewcontroller]
177 questions
0
votes
1 answer
How to get the size of pdf in bytes and assign it to the Data variable?
i have defined the documentPicker like the following but i want now to get the size of the uploaded pdf in bytes.
func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]){
self.parent.docData = // here the…

Alex
- 267
- 1
- 3
- 18
0
votes
1 answer
Remove File with UIDocumentPickerViewController
i want to delete a pdf file (for example a pdf file
that are present on my iPhone) with the UIDocumentPickerViewController controller. In the info.plist I already support iTunes file sharing and support opening documents...
I want to delete the pdf…

developerAvatar
- 43
- 3
0
votes
0 answers
App Freezes and Crashes After Opening Big Files From DocumentPicker
var con = new UIDocumentPickerController();
I’m using the code above for my DocumentPicker but whenever I pick a file that is for example over 500 megabytes, the app freezes and crashes out. After that, the phone loses the control and restarts.…

SCFSOF
- 13
- 4
0
votes
1 answer
How to get data from a CSV in swift when using UIDocumentPickerViewController
I cannot find a way to import data from a CSV file. I want the data to be loading into an array.
I have tried Googling this but nothing I find seems to work for my case
This is my UIDocumentPickerViewController.
func documentPicker(_ controller:…

117MasterChief96
- 548
- 1
- 5
- 16
0
votes
1 answer
Multiple selection for document picker controller
I am trying to select multiple files in document picker. Here is my code:
let documentPicker = UIDocumentPickerViewController(documentTypes: [String(kUTTypeFolder)], in: .import)
documentPicker.delegate = self
self.present(documentPicker, animated:…

User511
- 1,456
- 10
- 28
0
votes
1 answer
How to update the the style for frame size in UIDocumentPickerViewController
In my app, the frame size of my UIDocumentPickerViewController always full screen as the following picture and the following code. However, I find there is a different frame size for the UIDocumentPickerViewController but I don't know how to get the…

zeng hsing
- 3
- 6
0
votes
1 answer
iOS PDF's Path keeps on changing every time
I am working on a project where I am supposed to take one pdf and add it to my list in the table view and processed it. Now again when user is selecting that pdf from list i need to process it again but its not opening. When i investigated the issue…

Udeshi
- 35
- 6
0
votes
1 answer
UIDocumentPickerViewController allows selecting a file the first time the app is run, but not subsequently
My app, when run, creates a json document (using a UIDocument subclass) in its document directory. And then, when opening up the UIDocumentPickerViewController to select a file, if the app has written a new file, the behaviour is as…

Tudor Croitoru Domi
- 63
- 1
- 8
0
votes
0 answers
Swift UIDocumentPicker selected document upload into AWS S3
I have done UIDocumentPicker to pick some documents (.pdf,audio or video, etc) and printing the URL path. Now, I don't know how to upload the file in AWS S3 but based on AWS document I have done proper AWS configuration SDK installation within my…

JUJU
- 27
- 5
0
votes
1 answer
Swift UIDocumentPickerViewController not showing like Action sheet popup
I am trying to access third party cloud applications. my app upload button click to open UIDocumentPickerViewController and need to pick files (single or multiple) then I am uploading my server.
Upload button click to…
user10196635
0
votes
2 answers
Xamarin iOS MusicXML files are greyed out in UIDocumentPickerViewController
I have a Xamarin iOS project written C#.
I have implemented a UIDocumentPickerViewController with which can import external Files into my app. PDFs and XMLs work like a charm on iOS 11 with the following code:
// Allow the Document picker to select…

es1
- 1,231
- 3
- 14
- 27
0
votes
1 answer
Missing "Edit" button for Browse other locations like to enable Dropbox, Google drive & Etc in UIDocumentPickerViewController implementtion
Missing Edit button for Access/Disable another cloud drives
UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:types inMode:UIDocumentPickerModeImport];
documentPicker.delegate =…

user9799909
- 3
- 4
0
votes
1 answer
UIDocumentPickerViewController scrollview overlapping with top navigation bar
I am trying to show UIDocumentPickerViewController modally. Its showing but the scroll view inside UIDocumentPickerViewController is not showing some part from top, I have to scroll down to see the content, once released, again goes back to top.…

infiniteLoop
- 2,135
- 1
- 25
- 29
0
votes
2 answers
Xamarin iOS DocumentPicker: How to import large files?
In the DidPickDocument event of UIDocumentPickerViewController I try to import/write the selected file into the app's local Documents directory.
This works fine with "small" files (e.g < 100MB) using a subclassed UIDocument class with overriden
…

fritz
- 427
- 1
- 5
- 13
0
votes
0 answers
Restrict document types for only PDF and Word documents
I'm using the UIDocumentMenuViewController to pick and choose documents. I want to restrict users to pick only .pdf and .docx files.
I know I can allow only PDFs like this.
UIDocumentMenuViewController(documentTypes: [String(kUTTypePDF)], in:…

Isuru
- 30,617
- 60
- 187
- 303