Saved photos get overridden and deleted

Hey,

I have a marketplace app where a user can upload a photo when he creates a listing and all other information (price, availabilities, etc.)
There’s a page where the user create a listing. If the user wants to update the info of his listing, there’s another page for that called “edit_listing”, where he can update the photos of his listing, prices, etc.

When the user updates his listing and saves, the photos he had initially get deleted.
So if user A, had IMAGE 1, IMAGE 2, IMAGE 3 and updates the price of his listing and clicks save, all 3 images get deleted. If user A adds another image, IMAGE 4, only IMAGE 4 will be saved.

Below is a screenshot of what I saving using the “make changes to a thing”
image

When the user clicks on the highlighted button, a popup appears with the multifile uploader. Once the user uploads his file, the popup hides and the photos appear in the RG below:

And this is the multifile uploader files displayed

Any idea how make it so whatever was initially saved stays saved and only deleted if the user manually removes a picture?

Thank you,

Mac

Don’t use set list. Add to list.

I did that! And now it works fine. However, when I click on remove (see below) the image stay there.


Any idea why and a possible solution?
I’m guessing it has to do with the initial files to display but I thought clicking on remove would remove.

Not sure. Can you reset the group? Maybe clear out the old data?

That’s the workflow I have:

Step 1

Step 2

I already had a reset group action. When I removed this step, it was removing the item in the uploader but it would stay saved in the database for some reason…

I’m really confused, not sure why you are merging everything, I don’t think you are doing things correctly, but it’s hard to say what the issue is because there isn’t enough info.

I think you just need to rethink how you are doing things and try other ways.