I need some help, on which I feel is something really simple.
I’ve been following a Tinder clone tutorial and am stuck on trying to get a trash can icon (when clicked) to delete a certain image. (I’ve attached the workflows ect to this post)
It doesn’t seem to delete the image I want to when I preview the app. Any ideas?
So if I preview my app. A user would be able to upload an image into the picture uploader box. However if they decide they don’t want that image, the would click the trash can, however, clicking the trash can doesn’t seem to delete anything
Well currently you’re just deleting the most recently created User Image, rather than the User Image in question.
To delete the correct image you need to define the specific User Image you want to delete (presumably the parent group’s User Image, assuming that’s how your page is set up).
Also, bear in mind that Deleting a Thing from the database (in this case a User Image) doesn’t delete any files from your file storage (in this case an image), so if you have a PictureUploader element that is showing an image (not a User Image) then the image will remain, even after you delete the User Image.