Skip to content

Commit 1cc3efe

Browse files
Update docs/vue/your-first-app/3-saving-photos.md
Co-authored-by: Maria Hutt <[email protected]>
1 parent bc40cfb commit 1cc3efe

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)