Skip to content

Support for HTML/RTF File Types on Android & iOS #993

@Kuljeet-123

Description

@Kuljeet-123

Feature description

Support for HTML/RTF File Types on Android & iOS

Description

I need support for selecting HTML and RTF files using this library on both Android and iOS.

Currently, I am trying to allow users to pick files with extensions/types like:

  • .html
  • .htm
  • .rtf

but these file types are either not being detected correctly or are not supported consistently across platforms.

Expected Behavior

The document picker should allow selecting:

  • HTML files (text/html)
  • RTF files (application/rtf, text/rtf)

on both Android and iOS.

Questions

  1. Is there already a supported way to achieve this using custom MIME types / UTTypes?
  2. If not supported currently, is there any recommended workaround?
  3. Are there any platform limitations from Android/iOS native pickers that prevent this?

Example Use Case

We need users to upload formatted text documents exported from editors/web tools, where files may come as HTML or RTF formats.

Environment

  • react-native-document-picker version: latest
  • Platform: Android & iOS

What platform(s) should this be implemented on?

Android, iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions