ionic-team / tutorial-photo-gallery-vue

Photo Gallery Tutorial: Ionic Vue and Capacitor
https://ionicframework.com/docs/vue/your-first-app
60 stars 43 forks source link

photo not saved to filesystem #4

Closed peterennis closed 2 years ago

peterennis commented 4 years ago

@dotNetkow

Here:

https://ionicframework.com/docs/vue/your-first-app/3-saving-photos

It says:

Each time a new photo is taken, it’s now automatically saved to the filesystem.

Where? Testing on Windows 10 and I do not see it.

Debugging shows this:

2020-10-07 14_20_46-Window

https://github.com/peterennis/ae-gallery/commit/63ef4c5de609fa04846a0c720a89d8bc7dbe420c#diff-e82017290860c60ca00f0a113bd7d2efR52-R53

But no trace of a file anywhere.

I assumed the initial app is a PWA using the camera on the laptop and later is configured for a mobile device.

Confused 😕

a2d commented 3 years ago

Ha! I wondered about that too, but the photo is only stored as a base64 encoded string in the browsers local storage, NOT a file on the filesystem.

jcesarmobile commented 2 years ago

Yeah, Capacitor Filesystem plugin, when running on web, it stores the files in IndexedDB as most browsers don't have access to the real Filesystem of the computer.