Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(file-picker): add webPath property #98

Open
3 of 15 tasks
robingenz opened this issue Dec 8, 2023 · 0 comments
Open
3 of 15 tasks

feat(file-picker): add webPath property #98

robingenz opened this issue Dec 8, 2023 · 0 comments
Labels
feature Feature request good first issue Good for newcomers package: file-picker

Comments

@robingenz
Copy link
Member

Plugin(s)

  • Android Foreground Service
  • Android Battery Optimization
  • App Update
  • Background Task
  • Badge
  • Cloudinary
  • Datetime Picker
  • File Opener
  • File Picker
  • Managed Configurations
  • NFC
  • Photo Editor
  • Screen Orientation

Current problem

If you currently need the webPath of a picked file, you must run the following code:

const { files } = await FilePicker.pickFiles();
const webPath = Capacitor.convertFileSrc(files[0].path);

Preferred solution

The plugin should generate the webPath, similar to the Capacitor Camera plugin, see https://capacitorjs.com/docs/apis/camera#photo.

Alternative options

No response

Additional context

No response

Before submitting

@robingenz robingenz added good first issue Good for newcomers feature Feature request package: file-picker labels Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request good first issue Good for newcomers package: file-picker
Projects
None yet
Development

No branches or pull requests

1 participant