react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 440 forks source link

.pub files are disabled in the selection dialog #441

Closed JeremyBradshaw7 closed 3 years ago

JeremyBradshaw7 commented 3 years ago

Bug report

Summary

Calling the picker for allFiles, there are a couple of .pub (Microsoft Publisher) files that are disabled for selection, when put into (for example) iCloud Documents folder.

Reproducible sample code

      const res = await DocumentPicker.pick({
        type: [DocumentPicker.types.allFiles]
      });

Steps to reproduce

As above, then put .pub file into accessible folder and try to select it - you can't because it is disabled.

Expect to be able to select the file, even if you don't have an app that can handle .pub files (we're just storing it in a back-end folder).

Environment info

"react-native-document-picker": "^3.5.3",

info Fetching system and libraries information...
System:
    OS: macOS 11.3.1
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 147.43 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 15.1.0 - /usr/local/bin/node
    Yarn: 1.19.1 - ~/.yarn/bin/yarn
    npm: 7.0.8 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK:
      API Levels: 23, 28, 29, 30
      Build Tools: 23.0.1, 23.0.2, 25.0.0, 25.0.1, 25.0.2, 26.0.2, 26.0.3, 27.0.0, 27.0.3, 28.0.2, 28.0.3, 29.0.2, 29.0.3
      System Images: android-16 | Google APIs Intel x86 Atom, android-22 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.7199119
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_271 - /Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1
    react-native: 0.64.1 => 0.64.1
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
vonovak commented 3 years ago

Hello and thanks for reporting. I am not able to reproduce the behavior with your code and file downloaded here https://www.researchgate.net/publication/267145722_Download_PUB_file_of_Ramble-strip_MS_Publisher_template_for_re-use_in_your_own_work

I will therefore close the issue. Please open a new issue if the problem persists

Thank you!