Uploading Images - Custom state

I’m trying to bring the picture from the camera library action to a custom state and it does not seem to want to do that. Has anyone ran into this yet? On the workflow I have press a button, open camera library, set state image result of step 1 camera library

the image is being saved but it is not refreshing the image element on the sheet

The same issue for me and especially with lists of images uploaded from gallery. But sometimes it happens also for single captured image from camera

@nick.carroll seems to be an issue

do you mind sharing more details on your setup? The following steps worked for me:

  1. add an image element onto a view
  2. add a custom state of image type to the view
  3. set the data source of the image element to the view state
  4. add a button to launch the photo library and set the sate with step of 1’s upload photo
1 Like

The photo uploads and is saved but it does not refresh the image element

Im using a non-scrollable sheet at the moment

What is the custom state set on? The sheet?

1 Like

yes on the sheet. its a sheet on top of a modal at the moment

Oh interesting. My sheet opens behind the modal view :thinking: but just testing on a sheet on a normal view, it works as expected

1 Like

so i have a job details view / click location information button → go to location info view in modal → click equipment and a sheet for equipment shows, a button to add equipment shows a new sheet, this is the sheet that is not showing the image properly.

Is there a reason you are using a custom state as the image data source instead of the image in the database?

1 Like

I wanted to store the image before creating the thing so that when someone cancels you dont have to delete the empty thing. I have tried both ways though and the image still does not refresh once you upload a picture

Makes sense. Thats super weird its not showing up though, should be no reason why unless its because the number of sheets?

1 Like

Yeah im not sure but only one sheet can be displayed at once it looks like. So its just the one sheet open.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.