capawesome-team / capacitor-plugins

⚡️ Community plugins for Capacitor. Supports Android, iOS and the Web.
https://capawesome.io/plugins/
210 stars 31 forks source link

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

Open massimoliani opened 4 months ago

massimoliani commented 4 months ago

Plugin(s)

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 https://github.com/ionic-team/capacitor-plugins/issues/2087

Before submitting

milanmarcinco commented 1 month ago

We are facing the same issue.

Additional context:

robingenz commented 1 month ago

I will take another look at the issue in the next few weeks (after my vacation). I might add a temporary copyFile(...) method or something similar.

massimoliani commented 1 month ago

Thanks a lot. Enjoy your vacation.

--------------------------

dr. Massimo Liani

Goooled s.r.l. Via Torricelli, 26 33080 - Porcia - PN

tel:3884484284

Il giorno mer 17 lug 2024 alle ore 11:20 Robin Genz < @.***> ha scritto:

I will take another look at the issue in the next few weeks (after my vacation). I might add a temporary copyFile(...) method or something similar.

— Reply to this email directly, view it on GitHub https://github.com/capawesome-team/capacitor-plugins/issues/158#issuecomment-2232840283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEC6WKAWUF53QHNBHT6XFVDZMYZONAVCNFSM6AAAAABF2JZ24SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZSHA2DAMRYGM . You are receiving this because you authored the thread.Message ID: @.***>