proposals icon indicating copy to clipboard operation
proposals copied to clipboard

File Selector

Open hinddeep opened this issue 5 years ago • 8 comments

Plugin Request

Name: File Selector Package: @capacitor-community/file-selector

Platform(s)

Android, iOS, Web

Existing Solutions

https://github.com/hinddeep/capacitor-file-selector

Description

The Capacitor plugin I’ve developed:

  1. Allows the developer to specify whether the user can select single or multiple files
  2. Lends the ability to restrict the user to select files conforming to a given set of extensions
  3. Lends the ability to restrict the user to select files conforming to a broader category of multimedia files, i.e. Audios, Videos and Images
  4. Supported Platforms: Android (is compatible with Android 10+'s scoped storage), iOS and Web

hinddeep avatar Sep 01 '20 09:09 hinddeep

Oh oh, cordova does that...maybe its still a bit too soon to switch to capacitor. Pretty basic stuff.

marcusdiy avatar Jun 16 '21 21:06 marcusdiy

@hinddeep i added your plugin to awesome-capacitor if that is useful please take time to star the repo as well :)

riderx avatar Nov 18 '21 03:11 riderx

Something like this should really be part of the official plugins of capacitor. Getting a working file picker on all three platforms was already a huge effort with cordova, sadly it looks equally hard if not harder on capacitor

Spinnenzunge avatar Apr 25 '22 12:04 Spinnenzunge

Something like this should really be part of the official plugins of capacitor. Getting a working file picker on all three platforms was already a huge effort with cordova, sadly it looks equally hard if not harder on capacitor

There are several community plugins that work well on all three platforms. Is there anything you are missing?

robingenz avatar Apr 25 '22 13:04 robingenz

The ones I found are either not actively maintained anymore (which sadly is some risk when developing for an enterprise) or not working with Capacitor 3. But sure this was just a quick overview research. I am sure there is a solution available out there but I think File Browsing is such a core feature for a lot of apps that I feel like this should be part of the official platform.

Spinnenzunge avatar Apr 25 '22 14:04 Spinnenzunge

The ones I found are either not actively maintained anymore (which sadly is some risk when developing for an enterprise) or not working with Capacitor 3.

Feel free to try this plugin and let me know if you are missing anything: https://github.com/robingenz/capacitor-file-picker

robingenz avatar Apr 25 '22 15:04 robingenz

Having a plugin in @capacitor-community/<plugin> for use by enterprise apps is different than a plugin from <random-person-or-other-community>/<plugin> so I hope the @capacitor-community team only uses these external repo links as potential candidates for adding to this repo and not as an indication that the plug proposal/request can be ignored.

jimbarrett33 avatar Oct 19 '22 23:10 jimbarrett33

@jimbarrett33 sadly not really, some plugin in the community are not maintained as well. @robingenz as me, we created plenty of plugins since that became a business for us. You can find the list of @robingenz plugin here : https://github.com/capawesome-team and mine here: https://capgo.app/plugins/

riderx avatar Oct 20 '22 01:10 riderx