Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Android: Can't detect PDF files in openFilePicker() #120

Open
paul-castro opened this issue Aug 7, 2020 · 3 comments
Open

Android: Can't detect PDF files in openFilePicker() #120

paul-castro opened this issue Aug 7, 2020 · 3 comments

Comments

@paul-castro
Copy link

Platform: Android (emulator and device)

Issue: No PDF files detected on using openFilePicker(), only image files

Code:

pickFile(type) {
    let extensions = [];
    let that = this;

  if (isAndroid) {
        extensions = ['pdf'];
    } else {
        extensions = [kUTTypePDF, kUTTypeText];
    }
    
    let options: FilePickerOptions = {
        android: {
            extensions: extensions,
            maxNumberFiles: 1
        },
        ios: {
            extensions: extensions,
            multipleSelection: false
        }
    };
    
    let mediafilepicker = new Mediafilepicker(); 
    mediafilepicker.openFilePicker(options);
}
@MohammedBashiru
Copy link

MohammedBashiru commented Aug 7, 2020

Yes. I have same issue but It seems to be an issue with android 10.
Its been reported on the Library's repo
fishwjy/MultiType-FilePicker#63 (comment)

@nituwda
Copy link

nituwda commented Sep 12, 2021

are there solutions for this kind of matter?

@csimpi
Copy link

csimpi commented Jan 1, 2023

same here, still

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants