Questions tagged [uidocumentpicker]

10 questions
3
votes
0 answers

How to resolve Error on closing document picker

Setting up a document picker where users can select PDF files from the 'Files app' and save this to my app document folder to use in the app. Got the document picker to open, select file - but upon closing I get the following…
Nicholas Farmer
  • 773
  • 7
  • 32
3
votes
2 answers

Cannot read property of undefined (reading 'pick') when trying to use document picker in react native

I'm trying to use document picker for my react-native app. I tried this command to install document picker: npm i react-native-document-picker. After writing some code, I open my app first on a web browser. But this error always happens when I try…
anvuong
  • 31
  • 2
2
votes
1 answer

Picking directory in react native

Does anyone know how to select a directory in react-native using react-native-document-picker? I have been using react-native-document-picker to select files of different extensions but I haven't come across yet any functionality in it to select a…
1
vote
0 answers

Possible Unhandled Promise Rejection(id:0) (Based on Document Picker)

Error appears with react-native-document-picker I can't find a Solution according to my Problem, so i try it this way. If the Button is pressed, no new Window is open, just the Error comes up. I tried with POD updates but i think i did something…
Flo Sojer
  • 81
  • 8
1
vote
1 answer

How to set up multiple UIDocumentPickers in the same VC

In one VC I am working in there are three buttons, and each button should present a document picker for different types of media. I have this configured-- but what I am not sure how to do is to handle my delegate method func documentPicker(_…
aritroper
  • 1,671
  • 5
  • 16
  • 26
0
votes
2 answers

document picker IOS failing to work , only opens icloud

I use expo document picker which works perfectly fine on android but on IOS, it does not work. I only get an option to open icloud and cannot browse through the device to pick a document. const documentFile = await…
catBuddy
  • 367
  • 1
  • 3
  • 15
0
votes
1 answer

Cannot find where to place files for the Xcode simulator on my Mac

I am having trouble finding where to place files on my Mac so that my Xcode simulator sees them. Working on a "file upload" section for my app. Before I call the UIDocumentPickerViewController, I do call my own function printSimDir which I use to…
Bartender1382
  • 195
  • 1
  • 10
0
votes
1 answer

How to Read Data from Text File iOS 15

Update: This code works in the simulator, but not on my device. Obviously, I'm needing it to work on both. I've followed the tutorials, yet I cannot seem to get this feature to work. When the user selects the barButtonItem, DocumentPicker opens…
Christian W
  • 353
  • 2
  • 12
0
votes
1 answer

How do I restrict UIDocumentPicker from adding .sh executable files in iOS 14.0 swift?

Currently using [.plainText, .spreadsheet, .html, .pdf, .xml, .presentation, .jpeg, .bmp, .gif, .png, .tiff, .content] these UTTypes but still able to attach .sh type files , how do I restrict executable files by still supporting text and doc…
0
votes
1 answer

Can a SwiftUI document based app show Firestore documents in the SwiftUI document browser directly?

Using Swift 5.3.1, Xcode 12.2, iOS 14.2. Is it possible to directly access Firestore documents from within a DocumentGroup based iOS app? I know that you can show the document browser with iOS 14 and SwiftUI. And it is also able to show iCloud or…