We have a simple page to edit a “book” on which there is a button “Change Cover”. When clicked, we want to allow the user to select a photo on the phone and set the image’s picture to that photo.
However, at the moment, it seems that our stored variable “cover_image” does not properly saves the picture. When clicking back and then re-opening the page, the image’s picture is not properly loaded from the variable. Weirdly enough, it works when doing the exact same thing on the label’s text value, but we can’t make it work for an image.
You need to store the image outside of Thunkable. This is usually done with Cloudinary. So you upload/host the image on Cloudinary and then access the url in Thunkable to display the image. The green “Photo” block should have the url so all you need to do is set your stored variable to that value.
We cannot save the photo directly in the stored variable ? I do not want to use the cloud. I imagine that we can encode the image but I thougth we could use the stored variable and the media library.
Any tips on this ?
Yes, @tatiang, the block was removed from the drawer. Not just that, Thunkable removed the announcement of this block from the Release Notes in their documentation.
[Edit]
I just tested a code that I have using this block in an old project