Using UIDocumentPickerViewController got all the files[pdf,docx,doc,xlsxl,image] using icloud. Here my code
@IBAction func uploadNewResumeAction(_ sender: Any) {
let documentPicker = UIDocumentPickerViewController(documentTypes: ["public.text", "com.apple.iwork.pages.pages", "public.data"], in: .import)
documentPicker.delegate = self
present(documentPicker, animated: true, completion: nil)
}
extension SchoolRulesView: UIDocumentPickerDelegate{
func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentAt url: URL) {
let cico = url as URL
print(cico)
print(url)
print(url.lastPathComponent)
print(url.pathExtension)
}
}
In some scenario want to display only one file docx,pdf,xlsxl,images.How it possible?
Also want to get iphone local stored .docx file [Ex: android phone local store file diplay to upload].
Same want to get the all the iphone stored local document and upload to server. how can achieve me. help me thanks advance.