Save uploaded media in App State

I have a question about using the "uploaded media" action to store media locally instead of using Firebase.

My app includes an onboarding process where users can add their child/children before registering. One of the elements they can add to a child's profile is a photo. After adding all the children, they are taken to a page that displays a list of their children, with an edit option in case they made a mistake.

The problem is that I am unable to pass these uploaded images to the app state and use them as images in the list. I believe I can only store the image path in the app state, and I don't have the path for the uploaded image. One possible solution could be to send the image to Firebase storage, but that would require changing the storage rules to allow write permission for unauthenticated users, which is not secure.

Is there any workaround for this issue?

5
6 replies