Skip to content

Commit 05a1aff

Browse files
Merge branch 'yourFirstAppVue' of https://github.com/soundproofboot/ionic-docs into yourFirstAppVue
2 parents c0caf4b + 1cc3efe commit 05a1aff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/vue/your-first-app/3-saving-photos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface UserPhoto {
4848
}
4949
```
5050

51-
Next, we'll add a function to save the photo to the filesystem. We pass in the `photo` object, which represents the newly captured device photo, as well as the fileName, the path where the file will be stored.
51+
Next, we'll add a function to save the photo to the filesystem. We pass in the `photo` object, which represents the newly captured device photo, as well as the `fileName`, the path where the file will be stored.
5252

5353
We use the Capacitor [Filesystem API](https://capacitorjs.com/docs/apis/filesystem) to save the photo to the filesystem. Create a new method inside `usePhotoGallery` called `savePicture`. This method will first convert the photo to base64 format, then feed the data to the Filesystem’s `writeFile` function:
5454

0 commit comments

Comments
 (0)