Attaching images to a custom state to then link to the database

Hello! I’m having trouble linking an image taken from my mobile camera or uploaded from the library to a custom state, which then feeds into the database. The image is being saved in the file manager of the database, so that part works, but it doesn’t link to the database entry.

I have created a custom field called ‘camera image’ which you can see below:

I have then told the workflow to set the state of the result of the camera. See below:

Then when the user hits the ‘Create Round’ button which submits the form and therefore all the details to the database, everything connects, but the image. See screenshot below:

Has anyone experienced a similar issue or can advise where I’m going wrong?

Thanks in advance!

Have you tried running the workflow step-by-step and see what kind of data the camera image state returns?

1 Like

Very strange! I did some testing to see what data the custom state is holding… refreshed, and the image in now attaching to the database entry. Not sure what happened, but now working. Thanks for the reply!

2 Likes

Images act weird for me occasionally, I’ve reported this a while ago but still have random issues with not saving properly to database.

I have since realised it might have been an error on my part. I didn’t have a ‘preview’ for the image I was taking/uploading so I presumed it was instant. I then inserted a dynamic image preview for the custom state and realised it took ~10secs to upload meaning I was submitting the form before the picture had chance to load. Hope this helps!