I have a project, car dealership website where they can put their cars for sale. So, I have a form (car details) with multiple file uploads (images of those cars) and I need help to understand how to handle those images so I can later edit that record and edit those images, for example remove some or add more. Best option would be to be able handle those images separately.
One option would be upload images with Ajax, but what if form is not submitted? what to do then with those uploaded images? And if images are uploaded, form submitted, how I will assign those images to that item id?
Other option would be to use multiple image input field, but then when selected images, can I remove some? As I understand I just have to re-select all again. Problem may be if there are 30 images.
Source: Ask PHP