Skip to content

feat: android save picked media to local folder from media store #158

@massimoliani

Description

@massimoliani

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

Metadata

Metadata

Assignees

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