I use free plugin to upload several images at once, and I want to enable the user to edit one or more images before saving them in the database (while keeping the image in the same index as it was before editing).
To do this, I use free plugin (Better uploader) to upload files, but free files uploding plugins do not include the feature of editing images before saving, so I do Workflow to save the uploaded images in a custom stste list, then used other plugin for images editing to enable the user to edit the images he wants from that list.
After editing the unedited image is deleted from the main list and add the alternative edited image to it.
In order for the modified image to take the same index as it was before the editing, I do a workflow that stored the previous images in a list and the subsequent images in another list, then reset the main list to become: the sum of the previous images + the modified image + the subsequent images.
I guess this is not the best way, so I’m wondering what are the best practices for changing a specific value in a custom state list in general? and what are the best practices for enabling the feature to edit images before storing them (my main case)?