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: android save picked media to local folder from media store #158

Open
3 of 17 tasks
massimoliani opened this issue Apr 6, 2024 · 0 comments
Open
3 of 17 tasks

Comments

@massimoliani
Copy link

massimoliani commented Apr 6, 2024

Plugin(s)

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

Current problem

I'm working on an app uploading videos to the cloud and like whatsapp we would like to store locally the picked medias by the user to be able to restore anytime a broken upload.
Right now on iOS the picked files is inside a local app folder (the cache) I move to documents folder and is fine and fast.
On android the content:/.... path can't be copied to local folder and reading it in chunk of base64 and store is too slow.
As we need to process with video compressor that accept only device path I can't use an URL of the blob.
Could be possible to have the same feature of iOS on android, when user pick media the media is put. on a local cache folder?

Preferred solution

Like iOS if is possible to store che picked file to local cache folder of the app.

Alternative options

Find a plugin able to copy from content to local folder.

Additional context

Related to ionic-team/capacitor-plugins#2087

Before submitting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants