react-native-documents / document-picker

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

Add support for the web platform using an input tag with type "file" #529

Closed noob247365 closed 1 year ago

noob247365 commented 2 years ago

Feature request

Currently there is no support for the web platform. I am in the process of possibly building a new application using this library to support JSON file uploads on multiple platforms. However, as it is not supported on web I can't use this package.

This has been mentioned in a few different areas, but specifically I want to call out the response by @vonovak in #486

Why it is needed

Additional support for platforms should always be something to look for. There was already a request open for this, but it was closed with no explanation

Support for web platform #88

Possible implementation

It appears someone has already implemented a possible implementation, however the PR was closed due to extraneous code

web platform #99

khushal87 commented 2 years ago

@vonovak Any plans to have web support in the future?

vonovak commented 1 year ago

Hello and thanks for asking, firstly:

However, as it is not supported on web I can't use this package.

this is not true, you can still use this package with mobile, and bring your own implementation on web.

Personally, I don't have plans for adding the support ATM, as there are other issues that have higher priority.

I'm open to someone contributing this via a PR. What needs to be included (apart from the code), is documentation and the example project needs to be able to run on web in order to allow development & testing of the web features.

Thank you 👍